Module packet_formats::ipv4
source · Expand description
Parsing and serialization of IPv4 packets.
The IPv4 packet format is defined in RFC 791 Section 3.1.
Modules§
- Parsing and serialization of IPv4 options.
- IPv4 packet parsing and serialization test utilities.
Structs§
- The prefix of the IPv4 header which precedes any header options and the body.
- Packet metadata which is present only in the IPv4 protocol’s packet format.
- Options provided to
Ipv4PacketBuilderWithOptions::new
exceedMAX_OPTIONS_LEN
when serialized. - An IPv4 packet.
- A builder for IPv4 packets.
- A PacketBuilder for Ipv4 Packets but with options.
- A partially parsed and not yet validated IPv4 packet.
Enums§
- The type of an IPv4 packet fragment.
Constants§
- The length of the fixed prefix of an IPv4 header (preceding the options).
- The maximum length of an IPv4 header.
- The maximum length for options in an IPv4 header.
Traits§
- Provides common access to IPv4 header fields.