pub enum L4Type {
Show 14 variants
ICMP,
IGMP,
TCP,
EGP,
IGP,
UDP,
GRE,
ESP,
AH,
ICMPv6,
IPIP,
ETHERIP,
L2TP,
OTHER(u8),
}
Expand description
Type of layer 4 headers.
Variants§
ICMP
Internet Control Message
IGMP
Internet Group Management
TCP
Transmission Control
EGP
Exterior Gateway Protocol
IGP
Interior Gateway Protocol (Cisco IGRP)
UDP
User Datagram
GRE
Generic Routing Encapsulation
ESP
IPsec Encap Security Payload
AH
IPsec Authentication Header
ICMPv6
ICMP for IPv6
IPIP
IP-within-IP Encapsulation Protocol
ETHERIP
Ethernet-within-IP Encapsulation
L2TP
Layer Two Tunneling Protocol
OTHER(u8)
Other protocol not yet implemented in this module. The argument contains a
Protocol number
.
Implementations§
Trait Implementations§
source§impl PartialEq<L4Type> for L4Type
impl PartialEq<L4Type> for L4Type
impl StructuralPartialEq for L4Type
Auto Trait Implementations§
impl RefUnwindSafe for L4Type
impl Send for L4Type
impl Sync for L4Type
impl Unpin for L4Type
impl UnwindSafe for L4Type
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more