Skip to content

Conversation

@Skyb0rg007
Copy link

Allows setting the IP_CHECKSUM/IPV6_CHECKSUM socket options. This option is used to have the kernel insert/check a checksum at the specified offset in non-ICMP RAW sockets. The behavior of IPV6_CHECKSUM is specified in RFC 3542 Section 3.1

I used u32 for the value, though i32 could make more sense, as -1 is a special value for "disable this option". u32::MAX works for this when using u32 though.

The platform list is an estimate and could use validation, though this is part of a Unix API so it should be available on most modern systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant