SO_NO_CHECK socket option
Hi,
according to RFC 768 the UDP checksum is optional, and indeed the kernel has support for the SO_NO_CHECK socket option (boolean: 0 == default, calculate checksum on xmit, 1 == do not calculate checksum on xmit).
Maybe you would like to add this to socket(7).
Thanks
Johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello Johannes,
Quoted 8 lines · Johannes Stezenbach
Hi,
according to RFC 768 the UDP checksum is optional, and indeed the kernel has support for the
SO_NO_CHECKsocket option (boolean: 0 == default, calculate checksum on xmit, 1 == do not calculate checksum on xmit).Maybe you would like to add this to socket(7).
In the source of the socket.7 man page, there is a comment:
[[
]]
One of the coauthors of this page was Andi Kleen, and I suspect he wrote the comment
Signature · 7 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Hit send to soon on the last reply...]
Hello Johannes,
Quoted 8 lines · Johannes Stezenbach
Hi,
according to RFC 768 the UDP checksum is optional, and indeed the kernel has support for the
SO_NO_CHECKsocket option (boolean: 0 == default, calculate checksum on xmit, 1 == do not calculate checksum on xmit).Maybe you would like to add this to socket(7).
In the source of the socket.7 man page, there is a comment:
[[
.\" don't document it because it can do too much harm. .\".B SO_NO_CHECK
]]
One of the coauthors of this page was Andi Kleen, and I suspect he wrote the comment. Given that Andi knows far more about the socket stack than I, I am reluctant to make any change. But perhaps Andi can comment further.
Thanks,
Michael
Signature · 7 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html