Constant etherparse::icmpv6::MAX_ICMPV6_BYTE_LEN

source ·
pub const MAX_ICMPV6_BYTE_LEN: usize = _; // 4_294_967_295usize
Expand description

The maximum number of bytes/octets the ICMPv6 part of a packet can contain.

The value is determined by the maximum value of the “Upper-Layer Packet Length” field. This field is not directly part of the packet but used during the checksum calculation in the pseudo header.

The “Upper-Layer Packet Length” is represented as an u32 and defined as “…the Payload Length from the IPv6 header, minus the length of any extension headers present between the IPv6 header and the upper-layer header” (according to RFC 2460 Section 8.1). In other words, the length of the ICMPv6 part of the packet.

Therefor the maximum size of an ICMPv6 packet is u32::MAX.