1 .\" Copyright (c) 2008 by Gerrit Renker <gerrit@erg.abdn.ac.uk>
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\" $Id: udplite.7,v 1.12 2008/07/23 15:22:22 gerrit Exp gerrit $
7 .TH udplite 7 (date) "Linux man-pages (unreleased)"
9 udplite \- Lightweight User Datagram Protocol
12 .B #include <sys/socket.h>
13 .\" FIXME . see #defines under `BUGS',
14 .\" when glibc supports this, add
15 .\" #include <netinet/udplite.h>
17 .B sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDPLITE);
20 This is an implementation of the Lightweight User Datagram Protocol
21 (UDP-Lite), as described in RFC\ 3828.
23 UDP-Lite is an extension of UDP (RFC\ 768) to support variable-length
25 This has advantages for some types of multimedia transport that
26 may be able to make use of slightly damaged datagrams,
27 rather than having them discarded by lower-layer protocols.
29 The variable-length checksum coverage is set via a
32 If this option is not set, the only difference from UDP is
33 in using a different IP protocol identifier (IANA number 136).
35 The UDP-Lite implementation is a full extension of
37 is, it shares the same API and API behavior, and in addition
38 offers two socket options to control the checksum coverage.
42 address format described in
46 address format described in
49 To set or get a UDP-Lite socket option, call
53 to write the option with the option level argument set to
57 socket options are valid on a UDP-Lite socket.
62 The following two options are specific to UDP-Lite.
65 This option sets the sender checksum coverage and takes an
67 as argument, with a checksum coverage value in the range 0..2\[ha]16-1.
69 A value of 0 means that the entire datagram is always covered.
70 Values from 1\-7 are illegal (RFC\ 3828, 3.1) and are rounded up to
71 the minimum coverage of 8.
73 With regard to IPv6 jumbograms (RFC\ 2675), the UDP-Litev6 checksum
74 coverage is limited to the first 2\[ha]16-1 octets, as per RFC\ 3828, 3.5.
75 Higher values are therefore silently truncated to 2\[ha]16-1.
76 If in doubt, the current coverage value can always be queried using
80 This is the receiver-side analogue and uses the same argument format
82 .BR UDPLITE_SEND_CSCOV .
83 This option is not required to enable traffic with partial checksum
85 Its function is that of a traffic filter: when enabled, it
86 instructs the kernel to drop all packets which have a coverage
88 than the specified coverage value.
92 exceeds the actual packet coverage, incoming packets are silently dropped,
93 but may generate a warning message in the system log.
94 .\" SO_NO_CHECK exists and is supported by UDPv4, but is
95 .\" commented out in socket(7), hence also commented out here
97 .\"Since UDP-Lite mandates checksums, checksumming can not be disabled
103 All errors documented for
106 UDP-Lite does not add further errors.
110 Basic UDP-Litev4 statistics counters.
113 Basic UDP-Litev6 statistics counters.
115 UDP-Litev4/v6 first appeared in Linux 2.6.20.
117 .\" FIXME . remove this section once glibc supports UDP-Lite
118 Where glibc support is missing, the following definitions are needed:
122 #define IPPROTO_UDPLITE 136
123 .\" The following two are defined in the kernel in linux/net/udplite.h
124 #define UDPLITE_SEND_CSCOV 10
125 #define UDPLITE_RECV_CSCOV 11
134 RFC\ 3828 for the Lightweight User Datagram Protocol (UDP-Lite).
136 .I Documentation/networking/udplite.txt
137 in the Linux kernel source tree