Module xenet_packet::ipv4
source · Expand description
An IPv4 packet abstraction.
Modules
- Represents the IPv4 header flags.
Structs
- Represents an IPv4 Packet.
- Represents the IPv4 header.
- Used to iterate over a slice of
Ipv4Packet
s - Represents the IPv4 Option field.
- Represents the IPv4 option header.
- Used to iterate over a slice of
Ipv4OptionPacket
s - A structure enabling manipulation of on the wire packets
- A structure enabling manipulation of on the wire packets
- A structure enabling manipulation of on the wire packets
- A structure enabling manipulation of on the wire packets
Enums
- Represents the IPv4 options. http://www.iana.org/assignments/ip-parameters/ip-parameters.xhtml
Constants
- IPv4 Header Length
- IPv4 Header Byte Unit (32 bits)
Functions
- Calculates a checksum of an IPv4 packet header. The checksum field of the packet is regarded as zeros during the calculation.