Expand description
Parsing and serialization of IPv4 packets.
The IPv4 packet format is defined in RFC 791 Section 3.1.
Modules§
- options
- Parsing and serialization of IPv4 options.
- testutil
- IPv4 packet parsing and serialization test utilities.
Structs§
- Header
Prefix - The prefix of the IPv4 header which precedes any header options and the body.
- Ipv4
Only Meta - Packet metadata which is present only in the IPv4 protocol’s packet format.
- Ipv4
Options TooLong Error - Options provided to
Ipv4PacketBuilderWithOptions::new
exceedMAX_OPTIONS_LEN
when serialized. - Ipv4
Packet - An IPv4 packet.
- Ipv4
Packet Builder - A builder for IPv4 packets.
- Ipv4
Packet Builder With Options - A PacketBuilder for Ipv4 Packets but with options.
- Ipv4
Packet Raw - A partially parsed and not yet validated IPv4 packet.
Enums§
- Ipv4
Fragment Type - The type of an IPv4 packet fragment.
Constants§
- HDR_
PREFIX_ LEN - The length of the fixed prefix of an IPv4 header (preceding the options).
- MAX_
HDR_ LEN - The maximum length of an IPv4 header.
- MAX_
OPTIONS_ LEN - The maximum length for options in an IPv4 header.
Traits§
- Ipv4
Header - Provides common access to IPv4 header fields.
Type Aliases§
- Options
- A records parser for IPv4 options.