Subversion Repositories HelenOS

Rev

Rev 3912 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Copyright (c) 2009 Lukas Mejdrech
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms, with or without
  6.  * modification, are permitted provided that the following conditions
  7.  * are met:
  8.  *
  9.  * - Redistributions of source code must retain the above copyright
  10.  *   notice, this list of conditions and the following disclaimer.
  11.  * - Redistributions in binary form must reproduce the above copyright
  12.  *   notice, this list of conditions and the following disclaimer in the
  13.  *   documentation and/or other materials provided with the distribution.
  14.  * - The name of the author may not be used to endorse or promote products
  15.  *   derived from this software without specific prior written permission.
  16.  *
  17.  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  18.  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  19.  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  20.  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  21.  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  22.  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  25.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  26.  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  27.  */
  28.  
  29. /** @addtogroup ip
  30.  *  @{
  31.  */
  32.  
  33. /** @file
  34.  *  Internet protocol numbers according to the on-line IANA - Assigned Protocol numbers - <http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xml>, cited January 14 2009.
  35.  *  Names according to the linux src/include/linux/in.h header file.
  36.  */
  37.  
  38. #ifndef __NET_IPPROTOCOLS_H__
  39. #define __NET_IPPROTOCOLS_H__
  40.  
  41. /** IPv6 Hop-by-Hop Option internet protocol number.
  42.  */
  43. #define IPPROTO_HOPOPT      0
  44.  
  45. /** Internet Control Message internet protocol number.
  46.  */
  47. #define IPPROTO_ICMP        1
  48.  
  49. /** Internet Group Management internet protocol number.
  50.  */
  51. #define IPPROTO_IGMP        2
  52.  
  53. /** Gateway-to-Gateway internet protocol number.
  54.  */
  55. #define IPPROTO_GGP     3
  56.  
  57. /** IP in IP (encapsulation) internet protocol number.
  58.  */
  59. #define IPPROTO_IP      4
  60.  
  61. /** Stream internet protocol number.
  62.  */
  63. #define IPPROTO_ST      5
  64.  
  65. /** Transmission Control internet protocol number.
  66.  */
  67. #define IPPROTO_TCP     6
  68.  
  69. /** CBT internet protocol number.
  70.  */
  71. #define IPPROTO_CBT     7
  72.  
  73. /** Exterior Gateway Protocol internet protocol number.
  74.  */
  75. #define IPPROTO_EGP     8
  76.  
  77. /** any private interior gateway            
  78. (used by Cisco for their IGRP) internet protocol number.
  79.  */
  80. #define IPPROTO_IGP     9
  81.  
  82. /** BBN RCC Monitoring internet protocol number.
  83.  */
  84. #define IPPROTO_BBN_RCC_MON     10
  85.  
  86. /** Network Voice Protocol internet protocol number.
  87.  */
  88. #define IPPROTO_NVP_II      11
  89.  
  90. /** PUP internet protocol number.
  91.  */
  92. #define IPPROTO_PUP     12
  93.  
  94. /** ARGUS internet protocol number.
  95.  */
  96. #define IPPROTO_ARGUS       13
  97.  
  98. /** EMCON internet protocol number.
  99.  */
  100. #define IPPROTO_EMCON       14
  101.  
  102. /** Cross Net Debugger internet protocol number.
  103.  */
  104. #define IPPROTO_XNET        15
  105.  
  106. /** Chaos internet protocol number.
  107.  */
  108. #define IPPROTO_CHAOS       16
  109.  
  110. /** User Datagram internet protocol number.
  111.  */
  112. #define IPPROTO_UDP     17
  113.  
  114. /** Multiplexing internet protocol number.
  115.  */
  116. #define IPPROTO_MUX     18
  117.  
  118. /** DCN Measurement Subsystems internet protocol number.
  119.  */
  120. #define IPPROTO_DCN_MEAS        19
  121.  
  122. /** Host Monitoring internet protocol number.
  123.  */
  124. #define IPPROTO_HMP     20
  125.  
  126. /** Packet Radio Measurement internet protocol number.
  127.  */
  128. #define IPPROTO_PRM     21
  129.  
  130. /** XEROX NS IDP internet protocol number.
  131.  */
  132. #define IPPROTO_XNS_IDP     22
  133.  
  134. /** Trunk-1 internet protocol number.
  135.  */
  136. #define IPPROTO_TRUNK_1     23
  137.  
  138. /** Trunk-2 internet protocol number.
  139.  */
  140. #define IPPROTO_TRUNK_2     24
  141.  
  142. /** Leaf-1 internet protocol number.
  143.  */
  144. #define IPPROTO_LEAF_1      25
  145.  
  146. /** Leaf-2 internet protocol number.
  147.  */
  148. #define IPPROTO_LEAF_2      26
  149.  
  150. /** Reliable Data Protocol internet protocol number.
  151.  */
  152. #define IPPROTO_RDP     27
  153.  
  154. /** Internet Reliable Transaction internet protocol number.
  155.  */
  156. #define IPPROTO_IRTP        28
  157.  
  158. /** ISO Transport Protocol Class 4 internet protocol number.
  159.  */
  160. #define IPPROTO_ISO_TP4     29
  161.  
  162. /** Bulk Data Transfer Protocol internet protocol number.
  163.  */
  164. #define IPPROTO_NETBLT      30
  165.  
  166. /** MFE Network Services Protocol internet protocol number.
  167.  */
  168. #define IPPROTO_MFE_NSP     31
  169.  
  170. /** MERIT Internodal Protocol internet protocol number.
  171.  */
  172. #define IPPROTO_MERIT_INP       32
  173.  
  174. /** Datagram Congestion Control Protocol internet protocol number.
  175.  */
  176. #define IPPROTO_DCCP        33
  177.  
  178. /** Third Party Connect Protocol internet protocol number.
  179.  */
  180. #define IPPROTO_3PC     34
  181.  
  182. /** Inter-Domain Policy Routing Protocol internet protocol number.
  183.  */
  184. #define IPPROTO_IDPR        35
  185.  
  186. /** XTP internet protocol number.
  187.  */
  188. #define IPPROTO_XTP     36
  189.  
  190. /** Datagram Delivery Protocol internet protocol number.
  191.  */
  192. #define IPPROTO_DDP     37
  193.  
  194. /** IDPR Control Message Transport Proto internet protocol number.
  195.  */
  196. #define IPPROTO_IDPR_CMTP       38
  197.  
  198. /** TP++ Transport Protocol internet protocol number.
  199.  */
  200. #define IPPROTO_TP      39
  201.  
  202. /** IL Transport Protocol internet protocol number.
  203.  */
  204. #define IPPROTO_IL      40
  205.  
  206. /** Ipv6 internet protocol number.
  207.  */
  208. #define IPPROTO_IPV6        41
  209.  
  210. /** Source Demand Routing Protocol internet protocol number.
  211.  */
  212. #define IPPROTO_SDRP        42
  213.  
  214. /** Routing Header for IPv6 internet protocol number.
  215.  */
  216. #define IPPROTO_IPv6_Route      43
  217.  
  218. /** Fragment Header for IPv6 internet protocol number.
  219.  */
  220. #define IPPROTO_IPv6_Frag       44
  221.  
  222. /** Inter-Domain Routing Protocol internet protocol number.
  223.  */
  224. #define IPPROTO_IDRP        45
  225.  
  226. /** Reservation Protocol internet protocol number.
  227.  */
  228. #define IPPROTO_RSVP        46
  229.  
  230. /** General Routing Encapsulation internet protocol number.
  231.  */
  232. #define IPPROTO_GRE     47
  233.  
  234. /** Dynamic Source Routing Protocol internet protocol number.
  235.  */
  236. #define IPPROTO_DSR     48
  237.  
  238. /** BNA internet protocol number.
  239.  */
  240. #define IPPROTO_BNA     49
  241.  
  242. /** Encap Security Payload internet protocol number.
  243.  */
  244. #define IPPROTO_ESP     50
  245.  
  246. /** Authentication Header internet protocol number.
  247.  */
  248. #define IPPROTO_AH      51
  249.  
  250. /** Integrated Net Layer Security  TUBA internet protocol number.
  251.  */
  252. #define IPPROTO_I_NLSP      52
  253.  
  254. /** IP with Encryption internet protocol number.
  255.  */
  256. #define IPPROTO_SWIPE       53
  257.  
  258. /** NBMA Address Resolution Protocol internet protocol number.
  259.  */
  260. #define IPPROTO_NARP        54
  261.  
  262. /** IP Mobility internet protocol number.
  263.  */
  264. #define IPPROTO_MOBILE      55
  265.  
  266. /** Transport Layer Security Protocol        
  267. using Kryptonet key management internet protocol number.
  268.  */
  269. #define IPPROTO_TLSP        56
  270.  
  271. /** SKIP internet protocol number.
  272.  */
  273. #define IPPROTO_SKIP        57
  274.  
  275. /** ICMP for IPv6 internet protocol number.
  276.  */
  277. #define IPPROTO_IPv6_ICMP       58
  278.  
  279. /** No Next Header for IPv6 internet protocol number.
  280.  */
  281. #define IPPROTO_IPv6_NoNxt      59
  282.  
  283. /** Destination Options for IPv6 internet protocol number.
  284.  */
  285. #define IPPROTO_IPv6_Opts       60
  286.  
  287. /** Any host internal protocol internet protocol number.
  288.  */
  289. #define IPPROTO_AHIP        61
  290.  
  291. /** CFTP internet protocol number.
  292.  */
  293. #define IPPROTO_CFTP        62
  294.  
  295. /** Any local network internet protocol number.
  296.  */
  297. #define IPPROTO_ALN     63
  298.  
  299. /** SATNET and Backroom EXPAK internet protocol number.
  300.  */
  301. #define IPPROTO_SAT_EXPAK       64
  302.  
  303. /** Kryptolan internet protocol number.
  304.  */
  305. #define IPPROTO_KRYPTOLAN       65
  306.  
  307. /** MIT Remote Virtual Disk Protocol internet protocol number.
  308.  */
  309. #define IPPROTO_RVD     66
  310.  
  311. /** Internet Pluribus Packet Core internet protocol number.
  312.  */
  313. #define IPPROTO_IPPC        67
  314.  
  315. /** Any distributed file system internet protocol number.
  316.  */
  317. #define IPPROTO_ADFS        68
  318.  
  319. /** SATNET Monitoring internet protocol number.
  320.  */
  321. #define IPPROTO_SAT_MON     69
  322.  
  323. /** VISA Protocol internet protocol number.
  324.  */
  325. #define IPPROTO_VISA        70
  326.  
  327. /** Internet Packet Core Utility internet protocol number.
  328.  */
  329. #define IPPROTO_IPCV        71
  330.  
  331. /** Computer Protocol Network Executive internet protocol number.
  332.  */
  333. #define IPPROTO_CPNX        72
  334.  
  335. /** Computer Protocol Heart Beat internet protocol number.
  336.  */
  337. #define IPPROTO_CPHB        73
  338.  
  339. /** Wang Span Network internet protocol number.
  340.  */
  341. #define IPPROTO_WSN     74
  342.  
  343. /** Packet Video Protocol internet protocol number.
  344.  */
  345. #define IPPROTO_PVP     75
  346.  
  347. /** Backroom SATNET Monitoring internet protocol number.
  348.  */
  349. #define IPPROTO_BR_SAT_MON      76
  350.  
  351. /** SUN ND IPPROTOCOL_Temporary internet protocol number.
  352.  */
  353. #define IPPROTO_SUN_ND      77
  354.  
  355. /** WIDEBAND Monitoring internet protocol number.
  356.  */
  357. #define IPPROTO_WB_MON      78
  358.  
  359. /** WIDEBAND EXPAK internet protocol number.
  360.  */
  361. #define IPPROTO_WB_EXPAK        79
  362.  
  363. /** ISO Internet Protocol internet protocol number.
  364.  */
  365. #define IPPROTO_ISO_IP      80
  366.  
  367. /** VMTP internet protocol number.
  368.  */
  369. #define IPPROTO_VMTP        81
  370.  
  371. /** SECURE-VMTP internet protocol number.
  372.  */
  373. #define IPPROTO_SECURE_VMTP     82
  374.  
  375. /** VINES internet protocol number.
  376.  */
  377. #define IPPROTO_VINES       83
  378.  
  379. /** TTP internet protocol number.
  380.  */
  381. #define IPPROTO_TTP     84
  382.  
  383. /** NSFNET-IGP internet protocol number.
  384.  */
  385. #define IPPROTO_NSFNET_IGP      85
  386.  
  387. /** Dissimilar Gateway Protocol internet protocol number.
  388.  */
  389. #define IPPROTO_DGP     86
  390.  
  391. /** TCF internet protocol number.
  392.  */
  393. #define IPPROTO_TCF     87
  394.  
  395. /** EIGRP internet protocol number.
  396.  */
  397. #define IPPROTO_EIGRP       88
  398.  
  399. /** OSPFIGP internet protocol number.
  400.  */
  401. #define IPPROTO_OSPFIGP     89
  402.  
  403. /** Sprite RPC Protocol internet protocol number.
  404.  */
  405. #define IPPROTO_Sprite_RPC      90
  406.  
  407. /** Locus Address Resolution Protocol internet protocol number.
  408.  */
  409. #define IPPROTO_LARP        91
  410.  
  411. /** Multicast Transport Protocol internet protocol number.
  412.  */
  413. #define IPPROTO_MTP     92
  414.  
  415. /** AX.25 Frames internet protocol number.
  416.  */
  417. #define IPPROTO_AX25        93
  418.  
  419. /** IP-within-IP Encapsulation Protocol internet protocol number.
  420.  */
  421. #define IPPROTO_IPIP        94
  422.  
  423. /** Mobile Internetworking Control Pro. internet protocol number.
  424.  */
  425. #define IPPROTO_MICP        95
  426.  
  427. /** Semaphore Communications Sec. Pro. internet protocol number.
  428.  */
  429. #define IPPROTO_SCC_SP      96
  430.  
  431. /** Ethernet-within-IP Encapsulation internet protocol number.
  432.  */
  433. #define IPPROTO_ETHERIP     97
  434.  
  435. /** Encapsulation Header internet protocol number.
  436.  */
  437. #define IPPROTO_ENCAP       98
  438.  
  439. /** Any private encryption scheme internet protocol number.
  440.  */
  441. #define IPPROTO_APES        99
  442.  
  443. /** GMTP internet protocol number.
  444.  */
  445. #define IPPROTO_GMTP        100
  446.  
  447. /** Ipsilon Flow Management Protocol internet protocol number.
  448.  */
  449. #define IPPROTO_IFMP        101
  450.  
  451. /** PNNI over IP internet protocol number.
  452.  */
  453. #define IPPROTO_PNNI        102
  454.  
  455. /** Protocol Independent Multicast internet protocol number.
  456.  */
  457. #define IPPROTO_PIM     103
  458.  
  459. /** ARIS internet protocol number.
  460.  */
  461. #define IPPROTO_ARIS        104
  462.  
  463. /** SCPS internet protocol number.
  464.  */
  465. #define IPPROTO_SCPS        105
  466.  
  467. /** QNX internet protocol number.
  468.  */
  469. #define IPPROTO_QNX     106
  470.  
  471. /** Active Networks internet protocol number.
  472.  */
  473. #define IPPROTO_AN      107
  474.  
  475. /** IP Payload Compression Protocol internet protocol number.
  476.  */
  477. #define IPPROTO_IPComp      108
  478.  
  479. /** Sitara Networks Protocol internet protocol number.
  480.  */
  481. #define IPPROTO_SNP     109
  482.  
  483. /** Compaq Peer Protocol internet protocol number.
  484.  */
  485. #define IPPROTO_Compaq_Peer     110
  486.  
  487. /** IPX in IP internet protocol number.
  488.  */
  489. #define IPPROTO_IPX_in_IP       111
  490.  
  491. /** Virtual Router Redundancy Protocol internet protocol number.
  492.  */
  493. #define IPPROTO_VRRP        112
  494.  
  495. /** PGM Reliable Transport Protocol internet protocol number.
  496.  */
  497. #define IPPROTO_PGM     113
  498.  
  499. /** Any 0-hop protocol internet protocol number.
  500.  */
  501. #define IPPROTO_A0HP        114
  502.  
  503. /** Layer Two Tunneling Protocol internet protocol number.
  504.  */
  505. #define IPPROTO_L2TP        115
  506.  
  507. /** D-II Data Exchange (DDX) internet protocol number.
  508.  */
  509. #define IPPROTO_DDX     116
  510.  
  511. /** Interactive Agent Transfer Protocol internet protocol number.
  512.  */
  513. #define IPPROTO_IATP        117
  514.  
  515. /** Schedule Transfer Protocol internet protocol number.
  516.  */
  517. #define IPPROTO_STP     118
  518.  
  519. /** SpectraLink Radio Protocol internet protocol number.
  520.  */
  521. #define IPPROTO_SRP     119
  522.  
  523. /** UTI internet protocol number.
  524.  */
  525. #define IPPROTO_UTI     120
  526.  
  527. /** Simple Message Protocol internet protocol number.
  528.  */
  529. #define IPPROTO_SMP     121
  530.  
  531. /** SM internet protocol number.
  532.  */
  533. #define IPPROTO_SM      122
  534.  
  535. /** Performance Transparency Protocol internet protocol number.
  536.  */
  537. #define IPPROTO_PTP     123
  538.  
  539. /** ISIS over IPv4 internet protocol number.
  540.  */
  541. #define IPPROTO_ISIS        124
  542.  
  543. /** FIRE internet protocol number.
  544.  */
  545. #define IPPROTO_FIRE        125
  546.  
  547. /** Combat Radio Transport Protocol internet protocol number.
  548.  */
  549. #define IPPROTO_CRTP        126
  550.  
  551. /** Combat Radio User Datagram internet protocol number.
  552.  */
  553. #define IPPROTO_CRUDP       127
  554.  
  555. /** SSCOPMCE internet protocol number.
  556.  */
  557. #define IPPROTO_SSCOPMCE        128
  558.  
  559. /** IPLT internet protocol number.
  560.  */
  561. #define IPPROTO_IPLT        129
  562.  
  563. /** Secure Packet Shield internet protocol number.
  564.  */
  565. #define IPPROTO_SPS     130
  566.  
  567. /** Private IP Encapsulation within IP internet protocol number.
  568.  */
  569. #define IPPROTO_PIPE        131
  570.  
  571. /** Stream Control Transmission Protocol internet protocol number.
  572.  */
  573. #define IPPROTO_SCTP        132
  574.  
  575. /** Fibre Channel internet protocol number.
  576.  */
  577. #define IPPROTO_FC      133
  578.  
  579. /** RSVP-E2E-IGNORE internet protocol number.
  580.  */
  581. #define IPPROTO_RSVP_E2E_IGNORE     134
  582.  
  583. /** Mobility Header internet protocol number.
  584.  */
  585. #define IPPROTO_MH      135
  586.  
  587. /** UDPLite internet protocol number.
  588.  */
  589. #define IPPROTO_UDPLITE     136
  590.  
  591. /** MPLS-in-IP internet protocol number.
  592.  */
  593. #define IPPROTO_MPLS_in_IP      137
  594.  
  595. /** MANET Protocols internet protocol number.
  596.  */
  597. #define IPPROTO_manet       138
  598.  
  599. /** Host Identity Protocol internet protocol number.
  600.  */
  601. #define IPPROTO_HIP     139
  602.  
  603. /** Raw internet protocol number.
  604.  */
  605. #define IPPROTO_RAW     255
  606.  
  607. /** Maximum internet protocol number.
  608.  */
  609. #define IPPROTO_MAX     ( IPPROTO_RAW + 1 )
  610.  
  611. #endif
  612.  
  613. /** @}
  614.  */
  615.