Re: UDP data

David Astua <[email protected]> Thu, 10 Feb 2011 12:43:38 -0600
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <[email protected]>
On Thu, Feb 10, 2011 at 9:41 AM, Glynn Clements
<[email protected]> wrote:
>
> Randi wrote:
>
>> > Yes the checksum is for the header and data.
>> > Keep in mind that the checksum value is optional in ipv4, but required in ipv6.
>>
>> Chris, optional means it can be enable or not, how to enable it and get
>> the headehttps://mail.google.com/mail/?shva=1#inbox/12e0da8d716c914er to verify the checksum.
>
> Checksums are enabled by default. You can disable checksums when
> sending using the SO_NO_CHECK option. On receipt, the kernel will
> verify the checksum if it's present, and discard the packet if there
> is an error.
>
> --
> Glynn Clements <[email protected]>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

Also keep in mind that the check is for individual frames, even
checking that there's no certainty that all frames will arrive.

  -- David A.
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html