[][src]Crate pdu

Small, fast, and correct L2/L3/L4 packet parser.

Modules

EtherType

Provides constants representing various EtherTypes supported by this crate

IpProto

Provides constants representing various IP protocol numbers supported by this crate

TcpFlag

Provides constants representing TCP bitflags

Structs

ArpPdu

Represents an ARP payload

EthernetPdu

Represents an Ethernet header and payload

GrePdu

Represents a GREv0 header and payload

IcmpPdu

Represents an ICMP payload

Ipv4Pdu

Represents an IPv4 header and payload

Ipv6Pdu

Represents an IPv6 header and payload

TcpPdu

Represents a TCP header and payload

UdpPdu

Represents a UDP header and payload

Enums

Error

Defines the set of possible errors returned by packet parsers in this crate

Ethernet

Represents the payload of an EthernetPdu

Gre

Represents the payload of a GrePdu

Ip

Contains either an Ipv4Pdu or Ipv6Pdu depending on address family

Ipv4

Represents the payload of an Ipv4Pdu

Ipv4Option

Represents an IPv4 option

Ipv6

Represents the payload of an Ipv6Pdu

Ipv6ExtensionHeader

Represents an IPv6 extension header

Tcp

Represents the payload of a TcpPdu

TcpOption

Represents a TCP option

Udp

Represents the payload of a UdpPdu

Type Definitions

Result

Defines the return type used by packet parsers in this crate