Enum etherparse::err::ValueType
source · pub enum ValueType {
Show 13 variants
VlanId,
VlanPcp,
IpFragmentOffset,
Ipv4Dscp,
Ipv4Ecn,
Ipv6FlowLabel,
Ipv4PayloadLength,
Ipv6PayloadLength,
UdpPayloadLengthIpv4,
UdpPayloadLengthIpv6,
TcpPayloadLengthIpv4,
TcpPayloadLengthIpv6,
Icmpv6PayloadLength,
}
Expand description
Types of values that have a limited allowed value range
and can cause an crate::err::ValueTooBigError
.
Variants§
VlanId
VLAN identifier field present in a crate::SingleVlanHeader
.
VlanPcp
VLAN PCP (Priority Code Point) field in a crate::SingleVlanHeader
.
IpFragmentOffset
IP Fragment offset present in the IPv4 header and IPv6 fragmentation header.
Ipv4Dscp
IPv4 Header DSCP (Differentiated Services Code Point) field
present in an crate::Ipv4Header
.
Ipv4Ecn
IPv4 Header ECN (Explicit Congestion Notification) field
present in an crate::Ipv4Header
.
Ipv6FlowLabel
IPv6 Header Flow Label field present in crate::Ipv6Header
.
Ipv4PayloadLength
IPv4 Header “total length” field based on the payload length after the header.
Ipv6PayloadLength
IPv6 Header “payload length” field present in an
crate::Ipv6Header
.
UdpPayloadLengthIpv4
Payload length used when calculating the checksum of a
crate::UdpHeader
for IPv4.
UdpPayloadLengthIpv6
Payload length used when calculating the checksum of a
crate::UdpHeader
for IPv6.
TcpPayloadLengthIpv4
Payload length used when calculating the checksum of a
crate::TcpHeader
for IPv4.
TcpPayloadLengthIpv6
Payload length used when calculating the checksum of a
crate::TcpHeader
for IPv6.
Icmpv6PayloadLength
Variable length data of an ICMPv6 packet.
Trait Implementations§
source§impl Ord for ValueType
impl Ord for ValueType
source§impl PartialEq for ValueType
impl PartialEq for ValueType
source§impl PartialOrd for ValueType
impl PartialOrd for ValueType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more