Closed rcloran closed 1 year ago
The kernel will calculate checksums for ICMPv6 if the protocol for the socket is set to ICMPv6, see RFC 3542.
pnet does set the socket protocol to ICMPv6 appropriately: https://github.com/libpnet/libpnet/blob/main/pnet_transport/src/lib.rs#L112
I've verified this works correctly on Linux (5.15) and macOS (13.5).
Nice!
The kernel will calculate checksums for ICMPv6 if the protocol for the socket is set to ICMPv6, see RFC 3542.
pnet does set the socket protocol to ICMPv6 appropriately: https://github.com/libpnet/libpnet/blob/main/pnet_transport/src/lib.rs#L112
I've verified this works correctly on Linux (5.15) and macOS (13.5).