First page Back Continue Last page Overview Graphics
Checksum
Checksum incorporates the IPv6 pseudo-header
- int offset = 2;
- setsockopt(fd, IPPROTO_IPV6, IPV6_CHECKSUM,
- &offset, sizeof(offset));
offset is where the checksum is located
- -1 to disable checksumming
Notes
- Only for raw sockets other thant ICMPv6 sockets
- Odd is invalid
Notes: