Skip to contentSkip to conversation

SO_NO_CHECK socket option

DISCUSSION Johannes Stezenbach 2 participants 3 messages Aug 20, 2010 – Aug 29, 2010 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

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

#2 lore raw
In reply to a message not in the archive

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_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).

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
#3 lore raw
In reply to a message not in the archive

[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_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).

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