const.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. // go generate gen.go
  2. // Code generated by the command above; DO NOT EDIT.
  3. // Package iana provides protocol number resources managed by the Internet Assigned Numbers Authority (IANA).
  4. package iana // import "golang.org/x/net/internal/iana"
  5. // Differentiated Services Field Codepoints (DSCP), Updated: 2018-05-04
  6. const (
  7. DiffServCS0 = 0x00 // CS0
  8. DiffServCS1 = 0x20 // CS1
  9. DiffServCS2 = 0x40 // CS2
  10. DiffServCS3 = 0x60 // CS3
  11. DiffServCS4 = 0x80 // CS4
  12. DiffServCS5 = 0xa0 // CS5
  13. DiffServCS6 = 0xc0 // CS6
  14. DiffServCS7 = 0xe0 // CS7
  15. DiffServAF11 = 0x28 // AF11
  16. DiffServAF12 = 0x30 // AF12
  17. DiffServAF13 = 0x38 // AF13
  18. DiffServAF21 = 0x48 // AF21
  19. DiffServAF22 = 0x50 // AF22
  20. DiffServAF23 = 0x58 // AF23
  21. DiffServAF31 = 0x68 // AF31
  22. DiffServAF32 = 0x70 // AF32
  23. DiffServAF33 = 0x78 // AF33
  24. DiffServAF41 = 0x88 // AF41
  25. DiffServAF42 = 0x90 // AF42
  26. DiffServAF43 = 0x98 // AF43
  27. DiffServEF = 0xb8 // EF
  28. DiffServVOICEADMIT = 0xb0 // VOICE-ADMIT
  29. NotECNTransport = 0x00 // Not-ECT (Not ECN-Capable Transport)
  30. ECNTransport1 = 0x01 // ECT(1) (ECN-Capable Transport(1))
  31. ECNTransport0 = 0x02 // ECT(0) (ECN-Capable Transport(0))
  32. CongestionExperienced = 0x03 // CE (Congestion Experienced)
  33. )
  34. // Protocol Numbers, Updated: 2017-10-13
  35. const (
  36. ProtocolIP = 0 // IPv4 encapsulation, pseudo protocol number
  37. ProtocolHOPOPT = 0 // IPv6 Hop-by-Hop Option
  38. ProtocolICMP = 1 // Internet Control Message
  39. ProtocolIGMP = 2 // Internet Group Management
  40. ProtocolGGP = 3 // Gateway-to-Gateway
  41. ProtocolIPv4 = 4 // IPv4 encapsulation
  42. ProtocolST = 5 // Stream
  43. ProtocolTCP = 6 // Transmission Control
  44. ProtocolCBT = 7 // CBT
  45. ProtocolEGP = 8 // Exterior Gateway Protocol
  46. ProtocolIGP = 9 // any private interior gateway (used by Cisco for their IGRP)
  47. ProtocolBBNRCCMON = 10 // BBN RCC Monitoring
  48. ProtocolNVPII = 11 // Network Voice Protocol
  49. ProtocolPUP = 12 // PUP
  50. ProtocolEMCON = 14 // EMCON
  51. ProtocolXNET = 15 // Cross Net Debugger
  52. ProtocolCHAOS = 16 // Chaos
  53. ProtocolUDP = 17 // User Datagram
  54. ProtocolMUX = 18 // Multiplexing
  55. ProtocolDCNMEAS = 19 // DCN Measurement Subsystems
  56. ProtocolHMP = 20 // Host Monitoring
  57. ProtocolPRM = 21 // Packet Radio Measurement
  58. ProtocolXNSIDP = 22 // XEROX NS IDP
  59. ProtocolTRUNK1 = 23 // Trunk-1
  60. ProtocolTRUNK2 = 24 // Trunk-2
  61. ProtocolLEAF1 = 25 // Leaf-1
  62. ProtocolLEAF2 = 26 // Leaf-2
  63. ProtocolRDP = 27 // Reliable Data Protocol
  64. ProtocolIRTP = 28 // Internet Reliable Transaction
  65. ProtocolISOTP4 = 29 // ISO Transport Protocol Class 4
  66. ProtocolNETBLT = 30 // Bulk Data Transfer Protocol
  67. ProtocolMFENSP = 31 // MFE Network Services Protocol
  68. ProtocolMERITINP = 32 // MERIT Internodal Protocol
  69. ProtocolDCCP = 33 // Datagram Congestion Control Protocol
  70. Protocol3PC = 34 // Third Party Connect Protocol
  71. ProtocolIDPR = 35 // Inter-Domain Policy Routing Protocol
  72. ProtocolXTP = 36 // XTP
  73. ProtocolDDP = 37 // Datagram Delivery Protocol
  74. ProtocolIDPRCMTP = 38 // IDPR Control Message Transport Proto
  75. ProtocolTPPP = 39 // TP++ Transport Protocol
  76. ProtocolIL = 40 // IL Transport Protocol
  77. ProtocolIPv6 = 41 // IPv6 encapsulation
  78. ProtocolSDRP = 42 // Source Demand Routing Protocol
  79. ProtocolIPv6Route = 43 // Routing Header for IPv6
  80. ProtocolIPv6Frag = 44 // Fragment Header for IPv6
  81. ProtocolIDRP = 45 // Inter-Domain Routing Protocol
  82. ProtocolRSVP = 46 // Reservation Protocol
  83. ProtocolGRE = 47 // Generic Routing Encapsulation
  84. ProtocolDSR = 48 // Dynamic Source Routing Protocol
  85. ProtocolBNA = 49 // BNA
  86. ProtocolESP = 50 // Encap Security Payload
  87. ProtocolAH = 51 // Authentication Header
  88. ProtocolINLSP = 52 // Integrated Net Layer Security TUBA
  89. ProtocolNARP = 54 // NBMA Address Resolution Protocol
  90. ProtocolMOBILE = 55 // IP Mobility
  91. ProtocolTLSP = 56 // Transport Layer Security Protocol using Kryptonet key management
  92. ProtocolSKIP = 57 // SKIP
  93. ProtocolIPv6ICMP = 58 // ICMP for IPv6
  94. ProtocolIPv6NoNxt = 59 // No Next Header for IPv6
  95. ProtocolIPv6Opts = 60 // Destination Options for IPv6
  96. ProtocolCFTP = 62 // CFTP
  97. ProtocolSATEXPAK = 64 // SATNET and Backroom EXPAK
  98. ProtocolKRYPTOLAN = 65 // Kryptolan
  99. ProtocolRVD = 66 // MIT Remote Virtual Disk Protocol
  100. ProtocolIPPC = 67 // Internet Pluribus Packet Core
  101. ProtocolSATMON = 69 // SATNET Monitoring
  102. ProtocolVISA = 70 // VISA Protocol
  103. ProtocolIPCV = 71 // Internet Packet Core Utility
  104. ProtocolCPNX = 72 // Computer Protocol Network Executive
  105. ProtocolCPHB = 73 // Computer Protocol Heart Beat
  106. ProtocolWSN = 74 // Wang Span Network
  107. ProtocolPVP = 75 // Packet Video Protocol
  108. ProtocolBRSATMON = 76 // Backroom SATNET Monitoring
  109. ProtocolSUNND = 77 // SUN ND PROTOCOL-Temporary
  110. ProtocolWBMON = 78 // WIDEBAND Monitoring
  111. ProtocolWBEXPAK = 79 // WIDEBAND EXPAK
  112. ProtocolISOIP = 80 // ISO Internet Protocol
  113. ProtocolVMTP = 81 // VMTP
  114. ProtocolSECUREVMTP = 82 // SECURE-VMTP
  115. ProtocolVINES = 83 // VINES
  116. ProtocolTTP = 84 // Transaction Transport Protocol
  117. ProtocolIPTM = 84 // Internet Protocol Traffic Manager
  118. ProtocolNSFNETIGP = 85 // NSFNET-IGP
  119. ProtocolDGP = 86 // Dissimilar Gateway Protocol
  120. ProtocolTCF = 87 // TCF
  121. ProtocolEIGRP = 88 // EIGRP
  122. ProtocolOSPFIGP = 89 // OSPFIGP
  123. ProtocolSpriteRPC = 90 // Sprite RPC Protocol
  124. ProtocolLARP = 91 // Locus Address Resolution Protocol
  125. ProtocolMTP = 92 // Multicast Transport Protocol
  126. ProtocolAX25 = 93 // AX.25 Frames
  127. ProtocolIPIP = 94 // IP-within-IP Encapsulation Protocol
  128. ProtocolSCCSP = 96 // Semaphore Communications Sec. Pro.
  129. ProtocolETHERIP = 97 // Ethernet-within-IP Encapsulation
  130. ProtocolENCAP = 98 // Encapsulation Header
  131. ProtocolGMTP = 100 // GMTP
  132. ProtocolIFMP = 101 // Ipsilon Flow Management Protocol
  133. ProtocolPNNI = 102 // PNNI over IP
  134. ProtocolPIM = 103 // Protocol Independent Multicast
  135. ProtocolARIS = 104 // ARIS
  136. ProtocolSCPS = 105 // SCPS
  137. ProtocolQNX = 106 // QNX
  138. ProtocolAN = 107 // Active Networks
  139. ProtocolIPComp = 108 // IP Payload Compression Protocol
  140. ProtocolSNP = 109 // Sitara Networks Protocol
  141. ProtocolCompaqPeer = 110 // Compaq Peer Protocol
  142. ProtocolIPXinIP = 111 // IPX in IP
  143. ProtocolVRRP = 112 // Virtual Router Redundancy Protocol
  144. ProtocolPGM = 113 // PGM Reliable Transport Protocol
  145. ProtocolL2TP = 115 // Layer Two Tunneling Protocol
  146. ProtocolDDX = 116 // D-II Data Exchange (DDX)
  147. ProtocolIATP = 117 // Interactive Agent Transfer Protocol
  148. ProtocolSTP = 118 // Schedule Transfer Protocol
  149. ProtocolSRP = 119 // SpectraLink Radio Protocol
  150. ProtocolUTI = 120 // UTI
  151. ProtocolSMP = 121 // Simple Message Protocol
  152. ProtocolPTP = 123 // Performance Transparency Protocol
  153. ProtocolISIS = 124 // ISIS over IPv4
  154. ProtocolFIRE = 125 // FIRE
  155. ProtocolCRTP = 126 // Combat Radio Transport Protocol
  156. ProtocolCRUDP = 127 // Combat Radio User Datagram
  157. ProtocolSSCOPMCE = 128 // SSCOPMCE
  158. ProtocolIPLT = 129 // IPLT
  159. ProtocolSPS = 130 // Secure Packet Shield
  160. ProtocolPIPE = 131 // Private IP Encapsulation within IP
  161. ProtocolSCTP = 132 // Stream Control Transmission Protocol
  162. ProtocolFC = 133 // Fibre Channel
  163. ProtocolRSVPE2EIGNORE = 134 // RSVP-E2E-IGNORE
  164. ProtocolMobilityHeader = 135 // Mobility Header
  165. ProtocolUDPLite = 136 // UDPLite
  166. ProtocolMPLSinIP = 137 // MPLS-in-IP
  167. ProtocolMANET = 138 // MANET Protocols
  168. ProtocolHIP = 139 // Host Identity Protocol
  169. ProtocolShim6 = 140 // Shim6 Protocol
  170. ProtocolWESP = 141 // Wrapped Encapsulating Security Payload
  171. ProtocolROHC = 142 // Robust Header Compression
  172. ProtocolReserved = 255 // Reserved
  173. )
  174. // Address Family Numbers, Updated: 2018-04-02
  175. const (
  176. AddrFamilyIPv4 = 1 // IP (IP version 4)
  177. AddrFamilyIPv6 = 2 // IP6 (IP version 6)
  178. AddrFamilyNSAP = 3 // NSAP
  179. AddrFamilyHDLC = 4 // HDLC (8-bit multidrop)
  180. AddrFamilyBBN1822 = 5 // BBN 1822
  181. AddrFamily802 = 6 // 802 (includes all 802 media plus Ethernet "canonical format")
  182. AddrFamilyE163 = 7 // E.163
  183. AddrFamilyE164 = 8 // E.164 (SMDS, Frame Relay, ATM)
  184. AddrFamilyF69 = 9 // F.69 (Telex)
  185. AddrFamilyX121 = 10 // X.121 (X.25, Frame Relay)
  186. AddrFamilyIPX = 11 // IPX
  187. AddrFamilyAppletalk = 12 // Appletalk
  188. AddrFamilyDecnetIV = 13 // Decnet IV
  189. AddrFamilyBanyanVines = 14 // Banyan Vines
  190. AddrFamilyE164withSubaddress = 15 // E.164 with NSAP format subaddress
  191. AddrFamilyDNS = 16 // DNS (Domain Name System)
  192. AddrFamilyDistinguishedName = 17 // Distinguished Name
  193. AddrFamilyASNumber = 18 // AS Number
  194. AddrFamilyXTPoverIPv4 = 19 // XTP over IP version 4
  195. AddrFamilyXTPoverIPv6 = 20 // XTP over IP version 6
  196. AddrFamilyXTPnativemodeXTP = 21 // XTP native mode XTP
  197. AddrFamilyFibreChannelWorldWidePortName = 22 // Fibre Channel World-Wide Port Name
  198. AddrFamilyFibreChannelWorldWideNodeName = 23 // Fibre Channel World-Wide Node Name
  199. AddrFamilyGWID = 24 // GWID
  200. AddrFamilyL2VPN = 25 // AFI for L2VPN information
  201. AddrFamilyMPLSTPSectionEndpointID = 26 // MPLS-TP Section Endpoint Identifier
  202. AddrFamilyMPLSTPLSPEndpointID = 27 // MPLS-TP LSP Endpoint Identifier
  203. AddrFamilyMPLSTPPseudowireEndpointID = 28 // MPLS-TP Pseudowire Endpoint Identifier
  204. AddrFamilyMTIPv4 = 29 // MT IP: Multi-Topology IP version 4
  205. AddrFamilyMTIPv6 = 30 // MT IPv6: Multi-Topology IP version 6
  206. AddrFamilyEIGRPCommonServiceFamily = 16384 // EIGRP Common Service Family
  207. AddrFamilyEIGRPIPv4ServiceFamily = 16385 // EIGRP IPv4 Service Family
  208. AddrFamilyEIGRPIPv6ServiceFamily = 16386 // EIGRP IPv6 Service Family
  209. AddrFamilyLISPCanonicalAddressFormat = 16387 // LISP Canonical Address Format (LCAF)
  210. AddrFamilyBGPLS = 16388 // BGP-LS
  211. AddrFamily48bitMAC = 16389 // 48-bit MAC
  212. AddrFamily64bitMAC = 16390 // 64-bit MAC
  213. AddrFamilyOUI = 16391 // OUI
  214. AddrFamilyMACFinal24bits = 16392 // MAC/24
  215. AddrFamilyMACFinal40bits = 16393 // MAC/40
  216. AddrFamilyIPv6Initial64bits = 16394 // IPv6/64
  217. AddrFamilyRBridgePortID = 16395 // RBridge Port ID
  218. AddrFamilyTRILLNickname = 16396 // TRILL Nickname
  219. )