Crate etherparse[][src]

Structs

DoubleVlanHeader

IEEE 802.1Q double VLAN Tagging Header

Ethernet2Header

Ethernet II header.

Ipv4Header

IPv4 header without options.

Ipv6ExtensionHeader

Dummy struct for ipv6 header extensions.

Ipv6Header

IPv6 header according to rfc8200.

PacketBuilder

Helper for building packets.

PacketBuilderStep

An unfinished packet that is build with the packet builder

PacketHeaders

Decoded packet headers. You can use PacketHeaders::decode_from_ethernet2 to decode packets and get this struct as a result.

PacketSlice

A "slice" of a network packet containing a header. In contrast to the actual header structs this struct does only parse fields when the method for returning the field value is called.

SingleVlanHeader

IEEE 802.1Q VLAN Tagging Header

SlicedPacket
UdpHeader

Udp header according to rfc768.

Enums

ErrorField

Fields that can produce errors when serialized.

EtherType

Ether type enum present in ethernet II header.

InternetSlice
IpHeader

Internet protocol headers version 4 & 6

IpTrafficClass

Identifiers for the traffic_class field in ipv6 headers and protocol field in ipv4 headers.

LinkSlice
ReadError

Errors that can occur when reading.

TransportHeader

The possible headers on the transport layer

TransportSlice
ValueError

Errors in the given data

VlanHeader

IEEE 802.1Q VLAN Tagging Header (can be single or double tagged).

VlanSlice
WriteError

Errors that can occur when writing.

Constants

IPV6_MAX_NUM_HEADER_EXTENSIONS

Maximum number of header extensions allowed (according to the ipv6 rfc8200).

Traits

SerializedSize

Contains the size when serialized.