Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/udplite.h
Show All 23 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _NETINET_UDPLITE_H_ | #ifndef _NETINET_UDPLITE_H_ | ||||
#define _NETINET_UDPLITE_H_ | #define _NETINET_UDPLITE_H_ | ||||
/* | /* | ||||
* UDP-Lite protocol header. | |||||
* Per RFC 3828, July, 2004. | |||||
*/ | |||||
struct udplitehdr { | |||||
u_short udplite_sport; /* UDO-Lite source port */ | |||||
u_short udplite_dport; /* UDP-Lite destination port */ | |||||
u_short udplite_coverage; /* UDP-Lite checksum coverage */ | |||||
u_short udplite_checksum; /* UDP-Lite checksum */ | |||||
}; | |||||
/* | |||||
* User-settable options (used with setsockopt). | * User-settable options (used with setsockopt). | ||||
*/ | */ | ||||
#define UDPLITE_SEND_CSCOV 2 /* Sender checksum coverage. */ | #define UDPLITE_SEND_CSCOV 2 /* Sender checksum coverage. */ | ||||
#define UDPLITE_RECV_CSCOV 4 /* Receiver checksum coverage. */ | #define UDPLITE_RECV_CSCOV 4 /* Receiver checksum coverage. */ | ||||
#endif /* !_NETINET_UDPLITE_H_ */ | #endif /* !_NETINET_UDPLITE_H_ */ |