UDPLITE(4)
πΈ NAME πΈ
okay so bestie, this is udplite β the Lightweight User Datagram Protocol. You're looking at the UDPLITE(4) page from the Kernel Interfaces Manual, and yes, it's giving very niche-but-iconic networking energy. π
β¨ SYNOPSIS β¨
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/udplite.h>
int
socket(AF_INET, SOCK_DGRAM, IPPROTO_UDPLITE);
π DESCRIPTION π
The UDP-Lite protocol provides a partial checksum which allows corrupted packets to be transmitted to the receiving application. This has advantages for some types of multimedia transport that may be able to make use of slightly damaged datagrams, rather than having them discarded by lower-layer protocols. no cap, that's the whole vibe π
UDP-Lite supports a number of socket options which can be set with setsockopt(2) and tested with getsockopt(2):
UDPLITE_SEND_CSCOVβ this option sets the sender checksum coverage. A value of0indicates that all sent packets will have full checksum coverage. A value of8to65535limits the checksum coverage of all sent packets to the value given. πUDPLITE_RECV_CSCOVβ this option is the receiver-side analogue. A value of0instructs the kernel to drop all received packets not having full checksum coverage. A value of8to65535instructs the kernel to drop all received packets with a partial checksum coverage smaller than the value specified. π¦
π ERRORS π
A socket operation may fail with one of the following errors returned:
[EISCONN]β when trying to establish a connection on a socket which already has one, or when trying to send a datagram with the destination address specified and the socket is already connected. π[ENOTCONN]β when trying to send a datagram, but no destination address is specified, and the socket has not been connected. π[ENOBUFS]β when the system runs out of memory for an internal data structure. π[EADDRINUSE]β when an attempt is made to create a socket with a port which has already been allocated. π₯[EADDRNOTAVAIL]β when an attempt is made to create a socket with a network address for which no network interface exists. π
π¦ SEE ALSO π¦
π This UDPLITE(4) cutie is from Debian, dated October 1, 2014 β bye bestie, go checksum partially and slay! π«Ά
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2014, Kevin Lo
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms