Module etherparse::ip_number
source · Expand description
Constants for the ip protocol numbers for easy importing (e.g. use ip_number::*;
).
The constants only exist for convenience so you can import them
(use ip_number::*
) without a need to write IpNumber::
in front
of every constant.
You can access the underlying u8
value by using .0
and any u8
can be converted to an IpNumber
:
use etherparse::{ip_number::TCP, IpNumber};
assert_eq!(TCP.0, 6);
assert_eq!(TCP, IpNumber(6));
let num: IpNumber = 6.into();
assert_eq!(TCP, num);
The list original values were copied from https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
Constants§
- Active Networks [Bob_Braden]
- any distributed file system [Internet_Assigned_Numbers_Authority]
- any host internal protocol [Internet_Assigned_Numbers_Authority]
- any local network [Internet_Assigned_Numbers_Authority]
- any 0-hop protocol [Internet_Assigned_Numbers_Authority]
- ARGUS (deprecated) [Robert_W_Scheifler]
- ARIS [Nancy_Feldman]
- Authentication Header [RFC4302]
- Authentication Header [RFC4302]
- AX.25 Frames [Brian_Kantor]
- BBN RCC Monitoring [Steve_Chipman]
- BNA [Gary Salamon]
- Backroom SATNET Monitoring [Steven_Blumenthal]
- CBT [Tony_Ballardie]
- CFTP [Forsdick, H., “CFTP”, Network Message, Bolt Beranek and Newman, January 1982.][Harry_Forsdick]
- Chaos [J_Noel_Chiappa]
- Compaq Peer Protocol [Victor_Volpe]
- Computer Protocol Heart Beat [David Mittnacht]
- Computer Protocol Network Executive [David Mittnacht]
- Combat Radio Transport Protocol [Robert_Sautter]
- Combat Radio User Datagram [Robert_Sautter]
- Datagram Congestion Control Protocol [RFC4340]
- DCN Measurement Subsystems [David_Mills]
- Datagram Delivery Protocol [Wesley_Craig]
- D-II Data Exchange (DDX) [John_Worley]
- Dissimilar Gateway Protocol [M/A-COM Government Systems, “Dissimilar Gateway Protocol Specification, Draft Version”, Contract no. CS901145, November 16, 1987.][Mike_Little]
- Dynamic Source Routing Protocol [RFC4728]
- Exterior Gateway Protocol [RFC888] [David_Mills]
- EIGRP [RFC7868]
- EMCON [mystery contact]
- Encapsulation Header [RFC1241][Robert_Woodburn]
- Encapsulating Security Payload [RFC4303]
- Encapsulating Security Payload [RFC4303]
- Ethernet-within-IP Encapsulation [RFC3378]
- Use for experimentation and testing
- Use for experimentation and testing
- Use for experimentation and testing
- Use for experimentation and testing
- Fibre Channel [Murali_Rajagopal][RFC6172]
- FIRE [Criag_Partridge]
- Gateway-to-Gateway [RFC823]
- GMTP [[RXB5]]
- Generic Routing Encapsulation [RFC2784][Tony_Li]
- Host Identity Protocol [RFC7401]
- Host Monitoring [RFC869][Bob_Hinden]
- Interactive Agent Transfer Protocol [John_Murphy]
- Internet Control Message [RFC792]
- Inter-Domain Policy Routing Protocol [Martha_Steenstrup]
- IDPR Control Message Transport Proto [Martha_Steenstrup]
- Inter-Domain Routing Protocol [Sue_Hares]
- Ipsilon Flow Management Protocol [Bob_Hinden][November 1995, 1997.]
- Internet Group Management [RFC1112]
- any private interior gateway (used by Cisco for their IGRP) [Internet_Assigned_Numbers_Authority]
- IL Transport Protocol [Dave_Presotto]
- Integrated Net Layer Security TUBA [K_Robert_Glenn]
- Internet Packet Core Utility [Steven_Blumenthal]
- IP-within-IP Encapsulation Protocol [John_Ioannidis]
- IPLT [[Hollbach]]
- Internet Pluribus Packet Core [Steven_Blumenthal]
- IPv4 encapsulation [RFC2003]
- IPv6 encapsulation [RFC2473]
- Destination Options for IPv6 [RFC8200]
- Destination Options for IPv6 [RFC8200]
- Fragment Header for IPv6 [Steve_Deering]
- Fragment Header for IPv6 [Steve_Deering]
- IPv6 Hop-by-Hop Option [RFC8200]
- IPv6 Hop-by-Hop Option [RFC8200]
- IPv6 ICMP next-header type [RFC4443]
- No Next Header for IPv6 [RFC8200]
- Routing Header for IPv6 [Steve_Deering]
- Routing Header for IPv6 [Steve_Deering]
- IPX in IP [CJ_Lee]
- IP Payload Compression Protocol [RFC2393]
- Internet Reliable Transaction [RFC938] [Trudy_Miller]
- ISIS over IPv4 [Tony_Przygienda]
- ISO Internet Protocol [Marshall_T_Rose]
- ISO Transport Protocol Class 4 [RFC905] [mystery contact]
- Kryptolan [Paul Liu]
- Locus Address Resolution Protocol [Brian Horn]
- Layer Two Tunneling Protocol [RFC3931][Bernard_Aboba]
- Leaf-1 [Barry_Boehm]
- Leaf-2 [Barry_Boehm]
- MANET Protocols [RFC5498]
- MERIT Internodal Protocol [Hans_Werner_Braun]
- MFE Network Services Protocol [Shuttleworth, B., “A Documentary of MFENet, a National Computer Network”, UCRL-52317, Lawrence Livermore Labs, Livermore, California, June 1977.] [Barry_Howard]
- Mobile Internetworking Control Pro. (deprecated) [John_Ioannidis]
- IP Mobility [Charlie_Perkins]
- MobilityHeader [RFC6275]
- MobilityHeader [RFC6275]
- [RFC4023]
- Multicast Transport Protocol [Susie_Armstrong]
- Multiplexing [Cohen, D. and J. Postel, “Multiplexing Protocol”, IEN 90, USC/Information Sciences Institute, May 1979.][Jon_Postel]
- NBMA Address Resolution Protocol [RFC1735]
- Bulk Data Transfer Protocol [RFC969] [David_Clark]
- NSFNET-IGP [Hans_Werner_Braun]
- Network Voice Protocol [RFC741][Steve_Casner]
- PGM Reliable Transport Protocol [Tony_Speakman]
- Protocol Independent Multicast [RFC7761][Dino_Farinacci]
- Private IP Encapsulation within IP [Bernhard_Petri]
- PNNI over IP [Ross_Callon]
- Packet Radio Measurement [Zaw_Sing_Su]
- Performance Transparency Protocol [Michael_Welzl]
- PUP
- Packet Video Protocol [Steve_Casner]
- QNX [Michael_Hunter]
- Reliable Data Protocol [RFC908] [Bob_Hinden]
- Robust Header Compression [RFC5858]
- RSVP-E2E-IGNORE [RFC3175]
- MIT Remote Virtual Disk Protocol [Michael_Greenwald]
- SATNET and Backroom EXPAK [Steven_Blumenthal]
- SATNET Monitoring [Steven_Blumenthal]
- Semaphore Communications Sec. Pro. [Howard_Hart]
- SCPS [Robert_Durst]
- Stream Control Transmission Protocol [Randall_R_Stewart]
- Source Demand Routing Protocol [Deborah_Estrin]
- SECURE-VMTP [Dave_Cheriton]
- Shim6 Protocol [RFC5533]
- Simple Message Protocol [Leif_Ekblad]
- Sitara Networks Protocol [Manickam_R_Sridhar]
- SKIP [Tom_Markson]
- Simple Multicast Protocol (deprecated) [Jon_Crowcroft][draft-perlman-simple-multicast]
- Sprite RPC Protocol [Welch, B., “The Sprite Remote Procedure Call System”, Technical Report, UCB/Computer Science Dept., 86/302, University of California at Berkeley, June 1986.][Bruce Willins]
- Secure Packet Shield [Bill_McIntosh]
- SpectraLink Radio Protocol [Mark_Hamilton]
- SSCOPMCE [Kurt_Waber]
- Schedule Transfer Protocol [Jean_Michel_Pittet]
- SUN ND PROTOCOL-Temporary [William_Melohn]
- IP with Encryption (deprecated) [John_Ioannidis]
- TCF [Guillermo_A_Loyola]
- Transmission Control [RFC793]
- Third Party Connect Protocol [Stuart_A_Friedberg]
- Transport Layer Security Protocol using Kryptonet key management [Christer_Oberg]
- TP++ Transport Protocol [Dirk_Fromhein]
- Trunk-1 [Barry_Boehm]
- Trunk-2 [Barry_Boehm]
- Transaction Transport Protocol or Internet Protocol Traffic Manager [Jim_Stevens]
- User Datagram [RFC768] [Jon_Postel]
- UDPLite [RFC3828]
- UTI [Peter_Lothberg]
- VINES [Brian Horn]
- VISA Protocol [Gene_Tsudik]
- VMTP [Dave_Cheriton]
- Virtual Router Redundancy Protocol [RFC5798]
- WIDEBAND EXPAK [Steven_Blumenthal]
- WIDEBAND Monitoring [Steven_Blumenthal]
- Wrapped Encapsulating Security Payload [RFC5840]
- Wang Span Network [Victor Dafoulas]
- Cross Net Debugger [Haverty, J., “XNET Formats for Internet Protocol Version 4”, IEN 158, October 1980.][Jack_Haverty]
- XEROX NS IDP
- XTP [Greg_Chesson]