Expand description
An IPv4 packet abstraction.
Modules§
- Ipv4
Flags - Represents the IPv4 header flags.
Structs§
- Ipv4
- Represents an IPv4 Packet.
- Ipv4
Header - Represents the IPv4 header.
- Ipv4
Iterable - Used to iterate over a slice of
Ipv4Packet
s - Ipv4
Option - Represents the IPv4 Option field.
- Ipv4
Option Header - Represents the IPv4 option header.
- Ipv4
Option Iterable - Used to iterate over a slice of
Ipv4OptionPacket
s - Ipv4
Option Packet - A structure enabling manipulation of on the wire packets
- Ipv4
Packet - A structure enabling manipulation of on the wire packets
- Mutable
Ipv4 Option Packet - A structure enabling manipulation of on the wire packets
- Mutable
Ipv4 Packet - A structure enabling manipulation of on the wire packets
Enums§
- Ipv4
Option Type - Represents the IPv4 options. http://www.iana.org/assignments/ip-parameters/ip-parameters.xhtml
Constants§
- IPV4_
HEADER_ LEN - IPv4 Header Length
- IPV4_
HEADER_ LENGTH_ BYTE_ UNITS - IPv4 Header Byte Unit (32 bits)
Functions§
- checksum
- Calculates a checksum of an IPv4 packet header. The checksum field of the packet is regarded as zeros during the calculation.