Re: UDP data
Glynn Clements <[email protected]> Thu, 10 Feb 2011 15:41:20 +0000
| Newsgroups | org.kernel.vger.linux-c-programming |
|---|---|
| Message-ID | <[email protected]> |
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 header 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]>