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
UncategorisedOrAbsent
Either the driver did not categorise this packet or the layer 4 data structure is absent.
TransmissionControlProtocol
Transmission Control Protocol (TCP).
UserDatagramProtocol
User Datagram Protocol (UCP).
StreamControlTransmissionProtocol
Stream Control Transmission Protocol (SCTP).
InternetControlMessageProtocol
Internet Control Message Protocol (ICMP).
Only used on networks supporting internet protocol (IP) version 4.
Fragmented
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.
OtherNotAFragment
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
Other
Invalid or introduced after this code was written.
Trait Implementations
impl Debug for HardwareOffloadLayer4PacketType
[src]
impl Debug for HardwareOffloadLayer4PacketType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for HardwareOffloadLayer4PacketType
[src]
impl Copy for HardwareOffloadLayer4PacketType
impl Clone for HardwareOffloadLayer4PacketType
[src]
impl Clone for HardwareOffloadLayer4PacketType
fn clone(&self) -> HardwareOffloadLayer4PacketType
[src]
fn clone(&self) -> HardwareOffloadLayer4PacketType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Ord for HardwareOffloadLayer4PacketType
[src]
impl Ord for HardwareOffloadLayer4PacketType
fn cmp(&self, other: &HardwareOffloadLayer4PacketType) -> Ordering
[src]
fn cmp(&self, other: &HardwareOffloadLayer4PacketType) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for HardwareOffloadLayer4PacketType
[src]
impl PartialOrd for HardwareOffloadLayer4PacketType
fn partial_cmp(
&self,
other: &HardwareOffloadLayer4PacketType
) -> Option<Ordering>
[src]
fn partial_cmp(
&self,
other: &HardwareOffloadLayer4PacketType
) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
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 Eq for HardwareOffloadLayer4PacketType
impl PartialEq for HardwareOffloadLayer4PacketType
[src]
impl PartialEq for HardwareOffloadLayer4PacketType
fn eq(&self, other: &HardwareOffloadLayer4PacketType) -> bool
[src]
fn eq(&self, other: &HardwareOffloadLayer4PacketType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Hash for HardwareOffloadLayer4PacketType
[src]
impl Hash for HardwareOffloadLayer4PacketType
Auto Trait Implementations
impl Send for HardwareOffloadLayer4PacketType
impl Send for HardwareOffloadLayer4PacketType
impl Sync for HardwareOffloadLayer4PacketType
impl Sync for HardwareOffloadLayer4PacketType