#[repr(u8)]pub enum Protocol {
Hopopt = 0,
Icmp = 1,
Igmp = 2,
Tcp = 6,
Udp = 17,
Gre = 47,
Esp = 50,
Ah = 51,
Icmpv6 = 58,
}Expand description
IP protocol numbers (IANA assigned)
Standard protocol numbers used in WFP filter conditions. Values match the IANA protocol number assignments.
§Examples
use windows_wfp::Protocol;
let tcp = Protocol::Tcp;
assert_eq!(tcp as u8, 6);
let udp = Protocol::Udp;
assert_eq!(udp as u8, 17);Variants§
Hopopt = 0
IPv6 Hop-by-Hop Option (protocol 0)
Icmp = 1
Internet Control Message Protocol v4 (protocol 1)
Igmp = 2
Internet Group Management Protocol (protocol 2)
Tcp = 6
Transmission Control Protocol (protocol 6)
Udp = 17
User Datagram Protocol (protocol 17)
Gre = 47
Generic Routing Encapsulation (protocol 47)
Esp = 50
Encapsulating Security Payload / IPsec (protocol 50)
Ah = 51
Authentication Header / IPsec (protocol 51)
Icmpv6 = 58
Internet Control Message Protocol v6 (protocol 58)
Implementations§
Trait Implementations§
impl Copy for Protocol
impl Eq for Protocol
impl StructuralPartialEq for Protocol
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnsafeUnpin for Protocol
impl UnwindSafe for Protocol
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