Module ipv4

Source
Expand description

An IPv4 packet abstraction.

Modules§

Ipv4Flags
Represents the IPv4 header flags.

Structs§

Ipv4
Represents an IPv4 Packet.
Ipv4Header
Represents the IPv4 header.
Ipv4Iterable
Used to iterate over a slice of Ipv4Packets
Ipv4Option
Represents the IPv4 Option field.
Ipv4OptionHeader
Represents the IPv4 option header.
Ipv4OptionIterable
Used to iterate over a slice of Ipv4OptionPackets
Ipv4OptionPacket
A structure enabling manipulation of on the wire packets
Ipv4Packet
A structure enabling manipulation of on the wire packets
MutableIpv4OptionPacket
A structure enabling manipulation of on the wire packets
MutableIpv4Packet
A structure enabling manipulation of on the wire packets

Enums§

Ipv4OptionType
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.