Module ipv4

Source
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§

HeaderPrefix
The prefix of the IPv4 header which precedes any header options and the body.
Ipv4OnlyMeta
Packet metadata which is present only in the IPv4 protocol’s packet format.
Ipv4OptionsTooLongError
Options provided to Ipv4PacketBuilderWithOptions::new exceed MAX_OPTIONS_LEN when serialized.
Ipv4Packet
An IPv4 packet.
Ipv4PacketBuilder
A builder for IPv4 packets.
Ipv4PacketBuilderWithOptions
A PacketBuilder for Ipv4 Packets but with options.
Ipv4PacketRaw
A partially parsed and not yet validated IPv4 packet.

Enums§

Ipv4FragmentType
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§

Ipv4Header
Provides common access to IPv4 header fields.

Type Aliases§

Options
A records parser for IPv4 options.