public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* SO_NO_CHECK socket option
@ 2010-08-20 17:49 Johannes Stezenbach
       [not found] ` <20100820174917.GA18018-FF7aIK3TAVNeoWH0uzbU5w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Stezenbach @ 2010-08-20 17:49 UTC (permalink / raw)
  To: Michael Kerrisk; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: SO_NO_CHECK socket option
@ 2010-08-29 22:26 Andi Kleen
  0 siblings, 0 replies; 4+ messages in thread
From: Andi Kleen @ 2010-08-29 22:26 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
  Cc: Johannes Stezenbach, linux-man-u79uwXL29TY76Z2rM5mHXA, Andi Kleen


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

On Linux UDP checksums are essentially free and there's no reason
to turn them off and it would disable another safety line.
That is why I didn't document the option.

-Andi

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-29 22:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-20 17:49 SO_NO_CHECK socket option Johannes Stezenbach
     [not found] ` <20100820174917.GA18018-FF7aIK3TAVNeoWH0uzbU5w@public.gmane.org>
2010-08-29 13:39   ` Michael Kerrisk
2010-08-29 13:42   ` Michael Kerrisk
  -- strict thread matches above, loose matches on Subject: below --
2010-08-29 22:26 Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox