Enum network_packet::HardwareOffloadLayer4PacketType[][src]

pub enum HardwareOffloadLayer4PacketType {
    UncategorisedOrAbsent,
    TransmissionControlProtocol,
    UserDatagramProtocol,
    StreamControlTransmissionProtocol,
    InternetControlMessageProtocol,
    Fragmented,
    OtherNotAFragment,
    Other,
}

Hardware offload layer 4 packet type.

Only a small number of DPDK drivers categorise; mostly Intel's, Mellanox's and Cisco's.

If those that do, not all of these values may be supported by the driver, althought TCP, UDP and Fragmented seem to be supported by all of them.

In this case, DPDK drivers categorise as OtherNotAFragment.

If the packet is a tunneled packet, then this is known as the Outer Layer 4 packet type.

Variants

Either the driver did not categorise this packet or the layer 4 data structure is absent.

Transmission Control Protocol (TCP).

User Datagram Protocol (UCP).

Stream Control Transmission Protocol (SCTP).

Internet Control Message Protocol (ICMP).

Only used on networks supporting internet protocol (IP) version 4.

A fragmented internet protocol (IP) version 4 or version 6 packet.

Will never be the first fragment.

May not necessarily be a fragment of a TCP, UDP, SCTP or ICMP packet.

A internet protocol (IP) version 4 or version 6 packet which is:-

  • not TCP, UDP (and for Intel DPDK drivers, SCTP or ICMP);
  • not a fragment

Invalid or introduced after this code was written.

Trait Implementations

impl Debug for HardwareOffloadLayer4PacketType
[src]

Formats the value using the given formatter. Read more

impl Copy for HardwareOffloadLayer4PacketType
[src]

impl Clone for HardwareOffloadLayer4PacketType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Ord for HardwareOffloadLayer4PacketType
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for HardwareOffloadLayer4PacketType
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Eq for HardwareOffloadLayer4PacketType
[src]

impl PartialEq for HardwareOffloadLayer4PacketType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for HardwareOffloadLayer4PacketType
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations