{
    "content": [
        {
            "type": "text",
            "text": "# UDPLITE(7) (man)\n\n**Summary:** udplite - Lightweight User Datagram Protocol\n\n## See Also\n\n- ip(7)\n- ipv6(7)\n- socket(7)\n- udp(7)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (1 lines) — 1 subsections\n  - #include <sys/socket.h> (2 lines)\n- **DESCRIPTION** (14 lines) — 2 subsections\n  - Address format (3 lines)\n  - Socket options (28 lines)\n- **ERRORS** (2 lines)\n- **FILES** (6 lines)\n- **VERSIONS** (2 lines)\n- **BUGS** (6 lines)\n- **SEE ALSO** (6 lines)\n- **COLOPHON** (7 lines)\n\n## Full Content\n\n### NAME\n\nudplite - Lightweight User Datagram Protocol\n\n### SYNOPSIS\n\n#### #include <sys/socket.h>\n\nsockfd = socket(AFINET, SOCKDGRAM, IPPROTOUDPLITE);\n\n### DESCRIPTION\n\nThis  is an implementation of the Lightweight User Datagram Protocol (UDP-Lite), as described\nin RFC 3828.\n\nUDP-Lite is an extension of UDP (RFC 768) to support variable-length checksums.  This has ad‐\nvantages for some types of multimedia transport that may be able to make use of slightly dam‐\naged datagrams, rather than having them discarded by lower-layer protocols.\n\nThe variable-length checksum coverage is set via a setsockopt(2) option.  If this  option  is\nnot  set,  the  only difference from UDP is in using a different IP protocol identifier (IANA\nnumber 136).\n\nThe UDP-Lite implementation is a full extension of udp(7)—that is, it shares the same API and\nAPI behavior, and in addition offers two socket options to control the checksum coverage.\n\n#### Address format\n\nUDP-Litev4 uses the sockaddrin address format described in ip(7).  UDP-Litev6 uses the sock‐\naddrin6 address format described in ipv6(7).\n\n#### Socket options\n\nTo set or get a UDP-Lite socket option, call getsockopt(2) to read or setsockopt(2) to  write\nthe  option  with  the  option  level  argument set to IPPROTOUDPLITE.  In addition, all IP‐‐\nPROTOUDP socket options are valid on a UDP-Lite socket.  See udp(7) for more information.\n\nThe following two options are specific to UDP-Lite.\n\nUDPLITESENDCSCOV\nThis option sets the sender checksum coverage and takes an int  as  argument,  with  a\nchecksum coverage value in the range 0..2^16-1.\n\nA  value  of  0 means that the entire datagram is always covered.  Values from 1-7 are\nillegal (RFC 3828, 3.1) and are rounded up to the minimum coverage of 8.\n\nWith regard to IPv6 jumbograms (RFC 2675), the UDP-Litev6 checksum coverage is limited\nto  the  first  2^16-1  octets,  as  per  RFC 3828,  3.5.  Higher values are therefore\nsilently truncated to 2^16-1.  If in doubt, the current coverage value can  always  be\nqueried using getsockopt(2).\n\nUDPLITERECVCSCOV\nThis  is  the receiver-side analogue and uses the same argument format and value range\nas UDPLITESENDCSCOV.  This option is not required to  enable  traffic  with  partial\nchecksum  coverage.   Its  function  is that of a traffic filter: when enabled, it in‐\nstructs the kernel to drop all packets which have a coverage less than  the  specified\ncoverage value.\n\nWhen  the  value  of  UDPLITERECVCSCOV  exceeds the actual packet coverage, incoming\npackets are silently dropped, but may generate a warning message in the system log.\n\n### ERRORS\n\nAll errors documented for udp(7) may be returned.  UDP-Lite does not add further errors.\n\n### FILES\n\n/proc/net/snmp\nBasic UDP-Litev4 statistics counters.\n\n/proc/net/snmp6\nBasic UDP-Litev6 statistics counters.\n\n### VERSIONS\n\nUDP-Litev4/v6 first appeared in Linux 2.6.20.\n\n### BUGS\n\nWhere glibc support is missing, the following definitions are needed:\n\n#define IPPROTOUDPLITE     136\n#define UDPLITESENDCSCOV  10\n#define UDPLITERECVCSCOV  11\n\n### SEE ALSO\n\nip(7), ipv6(7), socket(7), udp(7)\n\nRFC 3828 for the Lightweight User Datagram Protocol (UDP-Lite).\n\nDocumentation/networking/udplite.txt in the Linux kernel source tree\n\n### COLOPHON\n\nThis page is part of release 5.10 of the Linux  man-pages  project.   A  description  of  the\nproject,  information about reporting bugs, and the latest version of this page, can be found\nat https://www.kernel.org/doc/man-pages/.\n\n\n\nLinux                                        2017-09-15                                   UDPLITE(7)\n\n"
        }
    ],
    "structuredContent": {
        "command": "UDPLITE",
        "section": "7",
        "mode": "man",
        "summary": "udplite - Lightweight User Datagram Protocol",
        "synopsis": "",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "ip",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/ip/7/json"
            },
            {
                "name": "ipv6",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/ipv6/7/json"
            },
            {
                "name": "socket",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/socket/7/json"
            },
            {
                "name": "udp",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/udp/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "#include <sys/socket.h>",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 14,
                "subsections": [
                    {
                        "name": "Address format",
                        "lines": 3
                    },
                    {
                        "name": "Socket options",
                        "lines": 28
                    }
                ]
            },
            {
                "name": "ERRORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "VERSIONS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "COLOPHON",
                "lines": 7,
                "subsections": []
            }
        ]
    }
}