Module pnet::packet::ipv4 [] [src]

IPv4 packet abstraction

Modules

Ipv4Flags

IPv4 header flags

Ipv4OptionNumbers

IPv4 header options numbers as defined in http://www.iana.org/assignments/ip-parameters/ip-parameters.xhtml

Structs

Ipv4

Represents an IPv4 Packet

Ipv4Iterable

Used to iterate over a slice of Ipv4Packets

Ipv4Option

Represents the IPv4 Option field

Ipv4OptionIterable

Used to iterate over a slice of Ipv4OptionPackets

Ipv4OptionNumber

Represents an IPv4 option

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

Functions

checksum

Calculates the checksum of an IPv4 packet header. The checksum field of the packet is regarded as zeros during the calculation