Enum IpNextLevelProtocol

Source
#[repr(u8)]
pub enum IpNextLevelProtocol {
Show 146 variants Hopopt = 0, Icmp = 1, Igmp = 2, Ggp = 3, Ipv4 = 4, St = 5, Tcp = 6, Cbt = 7, Egp = 8, Igp = 9, BbnRccMon = 10, NvpII = 11, Pup = 12, Argus = 13, Emcon = 14, Xnet = 15, Chaos = 16, Udp = 17, Mux = 18, DcnMeas = 19, Hmp = 20, Prm = 21, XnsIdp = 22, Trunk1 = 23, Trunk2 = 24, Leaf1 = 25, Leaf2 = 26, Rdp = 27, Irtp = 28, IsoTp4 = 29, Netblt = 30, MfeNsp = 31, MeritInp = 32, Dccp = 33, ThreePc = 34, Idpr = 35, Xtp = 36, Ddp = 37, IdprCmtp = 38, TpPlusPlus = 39, Il = 40, Ipv6 = 41, Sdrp = 42, Ipv6Route = 43, Ipv6Frag = 44, Idrp = 45, Rsvp = 46, Gre = 47, Dsr = 48, Bna = 49, Esp = 50, Ah = 51, INlsp = 52, Swipe = 53, Narp = 54, Mobile = 55, Tlsp = 56, Skip = 57, Icmpv6 = 58, Ipv6NoNxt = 59, Ipv6Opts = 60, HostInternal = 61, Cftp = 62, LocalNetwork = 63, SatExpak = 64, Kryptolan = 65, Rvd = 66, Ippc = 67, DistributedFs = 68, SatMon = 69, Visa = 70, Ipcv = 71, Cpnx = 72, Cphb = 73, Wsn = 74, Pvp = 75, BrSatMon = 76, SunNd = 77, WbMon = 78, WbExpak = 79, IsoIp = 80, Vmtp = 81, SecureVmtp = 82, Vines = 83, TtpOrIptm = 84, NsfnetIgp = 85, Dgp = 86, Tcf = 87, Eigrp = 88, OspfigP = 89, SpriteRpc = 90, Larp = 91, Mtp = 92, Ax25 = 93, IpIp = 94, Micp = 95, SccSp = 96, Etherip = 97, Encap = 98, PrivEncryption = 99, Gmtp = 100, Ifmp = 101, Pnni = 102, Pim = 103, Aris = 104, Scps = 105, Qnx = 106, AN = 107, IpComp = 108, Snp = 109, CompaqPeer = 110, IpxInIp = 111, Vrrp = 112, Pgm = 113, ZeroHop = 114, L2tp = 115, Ddx = 116, Iatp = 117, Stp = 118, Srp = 119, Uti = 120, Smp = 121, Sm = 122, Ptp = 123, IsisOverIpv4 = 124, Fire = 125, Crtp = 126, Crudp = 127, Sscopmce = 128, Iplt = 129, Sps = 130, Pipe = 131, Sctp = 132, Fc = 133, RsvpE2eIgnore = 134, MobilityHeader = 135, UdpLite = 136, MplsInIp = 137, Manet = 138, Hip = 139, Shim6 = 140, Wesp = 141, Rohc = 142, Test1 = 253, Test2 = 254, Reserved = 255,
}
Expand description

IP Next Level Protocol

Variants§

§

Hopopt = 0

IPv6 Hop-by-Hop Option [RFC2460]

§

Icmp = 1

Internet Control Message [RFC792]

§

Igmp = 2

Internet Group Management [RFC1112]

§

Ggp = 3

Gateway-to-Gateway [RFC823]

§

Ipv4 = 4

IPv4 encapsulation [RFC2003]

§

St = 5

Stream [RFC1190][RFC1819]

§

Tcp = 6

Transmission Control [RFC793]

§

Cbt = 7

CBT

§

Egp = 8

Exterior Gateway Protocol [RFC888]

§

Igp = 9

any private interior gateway (used by Cisco for their IGRP)

§

BbnRccMon = 10

BBN RCC Monitoring

§

NvpII = 11

Network Voice Protocol [RFC741]

§

Pup = 12

PUP

§

Argus = 13

ARGUS

§

Emcon = 14

EMCON

§

Xnet = 15

Cross Net Debugger

§

Chaos = 16

Chaos

§

Udp = 17

User Datagram [RFC768]

§

Mux = 18

Multiplexing

§

DcnMeas = 19

DCN Measurement Subsystems

§

Hmp = 20

Host Monitoring [RFC869]

§

Prm = 21

Packet Radio Measurement

§

XnsIdp = 22

XEROX NS IDP

§

Trunk1 = 23

Trunk-1

§

Trunk2 = 24

Trunk-2

§

Leaf1 = 25

Leaf-1

§

Leaf2 = 26

Leaf-2

§

Rdp = 27

Reliable Data Protocol [RFC908]

§

Irtp = 28

Internet Reliable Transaction [RFC938]

§

IsoTp4 = 29

ISO Transport Protocol Class 4 [RFC905]

§

Netblt = 30

Bulk Data Transfer Protocol [RFC969]

§

MfeNsp = 31

MFE Network Services Protocol

§

MeritInp = 32

MERIT Internodal Protocol

§

Dccp = 33

Datagram Congestion Control Protocol [RFC4340]

§

ThreePc = 34

Third Party Connect Protocol

§

Idpr = 35

Inter-Domain Policy Routing Protocol

§

Xtp = 36

XTP

§

Ddp = 37

Datagram Delivery Protocol

§

IdprCmtp = 38

IDPR Control Message Transport Proto

§

TpPlusPlus = 39

TP++ Transport Protocol

§

Il = 40

IL Transport Protocol

§

Ipv6 = 41

IPv6 encapsulation [RFC2473]

§

Sdrp = 42

Source Demand Routing Protocol

§

Ipv6Route = 43

Routing Header for IPv6

§

Ipv6Frag = 44

Fragment Header for IPv6

§

Idrp = 45

Inter-Domain Routing Protocol

§

Rsvp = 46

Reservation Protocol [RFC2205][RFC3209]

§

Gre = 47

Generic Routing Encapsulation [RFC1701]

§

Dsr = 48

Dynamic Source Routing Protocol [RFC4728]

§

Bna = 49

BNA

§

Esp = 50

Encap Security Payload [RFC4303]

§

Ah = 51

Authentication Header [RFC4302]

§

INlsp = 52

Integrated Net Layer Security TUBA

§

Swipe = 53

IP with Encryption

§

Narp = 54

NBMA Address Resolution Protocol [RFC1735]

§

Mobile = 55

IP Mobility

§

Tlsp = 56

Transport Layer Security Protocol using Kryptonet key management

§

Skip = 57

SKIP

§

Icmpv6 = 58

ICMPv6 [RFC4443]

§

Ipv6NoNxt = 59

No Next Header for IPv6 [RFC2460]

§

Ipv6Opts = 60

Destination Options for IPv6 [RFC2460]

§

HostInternal = 61

any host internal protocol

§

Cftp = 62

CFTP

§

LocalNetwork = 63

any local network

§

SatExpak = 64

SATNET and Backroom EXPAK

§

Kryptolan = 65

Kryptolan

§

Rvd = 66

MIT Remote Virtual Disk Protocol

§

Ippc = 67

Internet Pluribus Packet Core

§

DistributedFs = 68

any distributed file system

§

SatMon = 69

SATNET Monitoring

§

Visa = 70

VISA Protocol

§

Ipcv = 71

Internet Packet Core Utility

§

Cpnx = 72

Computer Protocol Network Executive

§

Cphb = 73

Computer Protocol Heart Beat

§

Wsn = 74

Wang Span Network

§

Pvp = 75

Packet Video Protocol

§

BrSatMon = 76

Backroom SATNET Monitoring

§

SunNd = 77

SUN ND PROTOCOL-Temporary

§

WbMon = 78

WIDEBAND Monitoring

§

WbExpak = 79

WIDEBAND EXPAK

§

IsoIp = 80

ISO Internet Protocol

§

Vmtp = 81

VMTP

§

SecureVmtp = 82

SECURE-VMTP

§

Vines = 83

VINES

§

TtpOrIptm = 84

Transaction Transport Protocol/IP Traffic Manager

§

NsfnetIgp = 85

NSFNET-IGP

§

Dgp = 86

Dissimilar Gateway Protocol

§

Tcf = 87

TCF

§

Eigrp = 88

EIGRP

§

OspfigP = 89

OSPFIGP [RFC1583][RFC2328][RFC5340]

§

SpriteRpc = 90

Sprite RPC Protocol

§

Larp = 91

Locus Address Resolution Protocol

§

Mtp = 92

Multicast Transport Protocol

§

Ax25 = 93

AX.25 Frames

§

IpIp = 94

IP-within-IP Encapsulation Protocol

§

Micp = 95

Mobile Internetworking Control Pro.

§

SccSp = 96

Semaphore Communications Sec. Pro.

§

Etherip = 97

Ethernet-within-IP Encapsulation [RFC3378]

§

Encap = 98

Encapsulation Header [RFC1241]

§

PrivEncryption = 99

any private encryption scheme

§

Gmtp = 100

GMTP

§

Ifmp = 101

Ipsilon Flow Management Protocol

§

Pnni = 102

PNNI over IP

§

Pim = 103

Protocol Independent Multicast [RFC4601]

§

Aris = 104

ARIS

§

Scps = 105

SCPS

§

Qnx = 106

QNX

§

AN = 107

Active Networks

§

IpComp = 108

IP Payload Compression Protocol [RFC2393]

§

Snp = 109

Sitara Networks Protocol

§

CompaqPeer = 110

Compaq Peer Protocol

§

IpxInIp = 111

IPX in IP

§

Vrrp = 112

Virtual Router Redundancy Protocol [RFC5798]

§

Pgm = 113

PGM Reliable Transport Protocol

§

ZeroHop = 114

any 0-hop protocol

§

L2tp = 115

Layer Two Tunneling Protocol [RFC3931]

§

Ddx = 116

D-II Data Exchange (DDX)

§

Iatp = 117

Interactive Agent Transfer Protocol

§

Stp = 118

Schedule Transfer Protocol

§

Srp = 119

SpectraLink Radio Protocol

§

Uti = 120

UTI

§

Smp = 121

Simple Message Protocol

§

Sm = 122

Simple Multicast Protocol

§

Ptp = 123

Performance Transparency Protocol

§

IsisOverIpv4 = 124

§

Fire = 125

§

Crtp = 126

Combat Radio Transport Protocol

§

Crudp = 127

Combat Radio User Datagram

§

Sscopmce = 128

§

Iplt = 129

§

Sps = 130

Secure Packet Shield

§

Pipe = 131

Private IP Encapsulation within IP

§

Sctp = 132

Stream Control Transmission Protocol

§

Fc = 133

Fibre Channel [RFC6172]

§

RsvpE2eIgnore = 134

[RFC3175]

§

MobilityHeader = 135

[RFC6275]

§

UdpLite = 136

[RFC3828]

§

MplsInIp = 137

[RFC4023]

§

Manet = 138

MANET Protocols [RFC5498]

§

Hip = 139

Host Identity Protocol [RFC5201]

§

Shim6 = 140

Shim6 Protocol [RFC5533]

§

Wesp = 141

Wrapped Encapsulating Security Payload [RFC5840]

§

Rohc = 142

Robust Header Compression [RFC5858]

§

Test1 = 253

Use for experimentation and testing [RFC3692]

§

Test2 = 254

Use for experimentation and testing [RFC3692]

§

Reserved = 255

Reserved

Implementations§

Source§

impl IpNextLevelProtocol

Source

pub fn new(n: u8) -> Self

IpNextLevelProtocol from u8

Source

pub fn as_str(&self) -> &'static str

Trait Implementations§

Source§

impl Clone for IpNextLevelProtocol

Source§

fn clone(&self) -> IpNextLevelProtocol

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IpNextLevelProtocol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for IpNextLevelProtocol

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for IpNextLevelProtocol

Source§

fn eq(&self, other: &IpNextLevelProtocol) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PrimitiveValues for IpNextLevelProtocol

Source§

type T = (u8,)

A tuple of types, to represent the current value.
Source§

fn to_primitive_values(&self) -> (u8,)

Convert a value to primitive types representing it.
Source§

impl Copy for IpNextLevelProtocol

Source§

impl Eq for IpNextLevelProtocol

Source§

impl StructuralPartialEq for IpNextLevelProtocol

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.