1 /****************************************************************************
2 ** File: ip_protocols.h
3 **
4 ** Author: Mike Borella
5 **
6 ** Comments: IP next protocol numbers
7 **
8 ** $Id: ip_protocols.h,v 1.11 2001/03/26 20:55:24 mborella Exp $
9 **
10 ** This program is free software; you can redistribute it and/or modify
11 ** it under the terms of the GNU General Public License as published by
12 ** the Free Software Foundation; either version 2 of the License, or
13 ** (at your option) any later version.
14 **
15 ** This program is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 ** GNU Library General Public License for more details.
19 **
20 ** You should have received a copy of the GNU General Public License
21 ** along with this program; if not, write to the Free Software
22 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 **
24 *****************************************************************************/
25 
26 #ifndef IP_PROTOCOLS_H
27 #define IP_PROTOCOLS_H
28 
29 #include "ip.h"
30 #include "tcp.h"
31 #include "udp.h"
32 #include "ah.h"
33 #include "esp.h"
34 #include "icmp.h"
35 #include "igmp.h"
36 #include "ospf.h"
37 #include "icmpv6.h"
38 #include "ipv6.h"
39 #include "gre.h"
40 #include "rsvp.h"
41 
42 /*
43  * This list contains lots of crufty old protocols just for kicks.
44  * The complete list is at http://www.iana.org.
45  */
46 
47 #define PROTO_IPV6HOP    0
48 #define PROTO_ICMP       1
49 #define PROTO_IGMP       2
50 #define PROTO_GGP        3
51 #define PROTO_IPENCAP    4
52 #define PROTO_ST         5
53 #define PROTO_TCP        6
54 #define PROTO_CBT        7
55 #define PROTO_EGP        8
56 #define PROTO_IGP        9
57 #define PROTO_PUP        12
58 #define PROTO_UDP        17
59 #define PROTO_HMP        20
60 #define PROTO_XNSIDP     22
61 #define PROTO_RDP        27
62 #define PROTO_IPV6       41
63 #define PROTO_IPV6ROUTE  43
64 #define PROTO_IPV6FRAG   44
65 #define PROTO_IDRP       45
66 #define PROTO_RSVP       46
67 #define PROTO_GRE        47
68 #define PROTO_ESP        50
69 #define PROTO_AH         51
70 #define PROTO_NARP       54
71 #define PROTO_IPV6ICMP   58
72 #define PROTO_IPV6NONEXT 59
73 #define PROTO_IPV6OPTS   60
74 #define PROTO_RSPF       73
75 #define PROTO_VMTP       81
76 #define PROTO_OSPF       89
77 #define PROTO_IPIP       94
78 #define PROTO_ENCAP      98
79 
80 void init_ip_protocols(void);
81 
82 #endif
83 
84 /* ip_protocols.h */
85