Subversion Repositories HelenOS

Rev

Rev 3912 | Go to most recent revision | Details | Last modification | View Log | RSS feed

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