Skip to main content

icmpv6_checksum

Function icmpv6_checksum 

pub fn icmpv6_checksum(
    source: Ipv6Addr,
    destination: Ipv6Addr,
    message: &[u8],
) -> Result<u16, IpPacketError>
Available on crate feature net only.
Expand description

ICMPv6 checksum including the IPv6 pseudo-header (RFC 4443 §2.3).

Returns zero for a valid received message including its checksum. This helper supports ordinary IPv6 packets (up to 65535 payload bytes), not jumbograms.