Implemented socket options SO_NO_CHECK for UDP sockets to disable UDP checksum generation on transmit.

This commit is contained in:
goldsimon
2007-06-17 11:46:30 +00:00
parent 1db9013bc4
commit ea7b0052f3
3 changed files with 23 additions and 1 deletions

View File

@@ -94,6 +94,7 @@ struct sockaddr {
#define SO_ERROR 0x1007 /* get error status and clear */
#define SO_TYPE 0x1008 /* get socket type */
#define SO_CONTIMEO 0x1009 /* connect timeout */
#define SO_NO_CHECK 0x100a /* don't create UDP checksum */
/*
@@ -150,7 +151,7 @@ struct linger {
*/
#define UDPLITE_SEND_CSCOV 0x01 /* sender checksum coverage */
#define UDPLITE_RECV_CSCOV 0x02 /* minimal receiver checksum coverage */
#endif
#endif /* LWIP_UDP && LWIP_UDPLITE*/
#if LWIP_IGMP