Crate pdu[][src]

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 the set of TCP bitflags

Structs

ArpPdu

Represents an ARP payload

EthernetPdu

Represents an Ethernet header and payload

GrePdu

Represents a GRE 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

Contains the inner payload of an EthernetPdu

Gre

Contains the inner payload of a GrePdu

Ip

Contains either an Ipv4Pdu or Ipv6Pdu depending on address family

Ipv4

Contains the inner payload of an Ipv4Pdu

Ipv4Option

Represents an IPv4 option

Ipv6

Contains the inner payload of an Ipv6Pdu

Ipv6ExtensionHeader

Represents an IPv6 extension header

Tcp

Contains the inner payload of a TcpPdu

TcpOption

Represents a TCP option

Udp

Contains the inner payload of a UdpPdu

Type Definitions

Result

Defines the return type used by packet parsers in this crate