Crate etherparse

source ·

Modules

Structs

IEEE 802.1Q double VLAN Tagging Header
A slice containing an double vlan header of a network package.
Ethernet II header.
A slice containing an ethernet 2 header of a network package.
IPv4 header without options.
A slice containing an ipv4 header of a network package.
Dummy struct for ipv6 header extensions.
A slice containing an ipv6 extension header of a network package.
IPv6 header according to rfc8200.
A slice containing an ipv6 header of a network package.
Helper for building packets.
An unfinished packet that is build with the packet builder
Decoded packet headers. You can use PacketHeaders::decode_from_ethernet2 to decode packets and get this struct as a result.
IEEE 802.1Q VLAN Tagging Header
A slice containing a single vlan header of a network package.
TCP header according to rfc 793.
A slice containing an tcp header of a network package.
Allows iterating over the options after a TCP header.
Udp header according to rfc768.
A slice containing an udp header of a network package. Struct allows the selective read of fields in the header.

Enums

Fields that can produce errors when serialized.
Ether type enum present in ethernet II header.
Internet protocol headers version 4 & 6
Identifiers for the traffic_class field in ipv6 headers and protocol field in ipv4 headers.
Errors that can occur when reading.
Different kinds of options that can be present in the options part of a tcp header.
Errors that can occour while reading the options of a TCP header.
Errors that can occour when setting the options of a tcp header.
The possible headers on the transport layer
Errors in the given data
IEEE 802.1Q VLAN Tagging Header (can be single or double tagged).
Errors that can occur when writing.

Constants

Maximum number of header extensions allowed (according to the ipv6 rfc8200).
The maximum allowed value for the data offset (it is a 4 bit value).
The minimum data offset size (size of the tcp header itself).
The minimum size of the tcp header in bytes

Traits

Contains the size when serialized.