Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / tcpdump / ipproto.h
blob1ce24d9ee1467259915b61a9f3208bc4fff2caca
1 /* $NetBSD$ */
3 /*
4 * Copyright (c) 1982, 1986, 1990, 1993
5 * The Regents of the University of California. All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. Neither the name of the University nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
19 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
31 * @(#) Header: /tcpdump/master/tcpdump/ipproto.h,v 1.4.2.2 2005/09/20 06:05:37 guy Exp (LBL)
33 * From:
34 * @(#)in.h 8.3 (Berkeley) 1/3/94
35 * $FreeBSD: src/sys/netinet/in.h,v 1.38.2.3 1999/08/29 16:29:34 peter Exp $
38 extern struct tok ipproto_values[];
40 #ifndef IPPROTO_IP
41 #define IPPROTO_IP 0 /* dummy for IP */
42 #endif
43 #ifndef IPPROTO_HOPOPTS
44 #define IPPROTO_HOPOPTS 0 /* IPv6 hop-by-hop options */
45 #endif
46 #ifndef IPPROTO_ICMP
47 #define IPPROTO_ICMP 1 /* control message protocol */
48 #endif
49 #ifndef IPPROTO_IGMP
50 #define IPPROTO_IGMP 2 /* group mgmt protocol */
51 #endif
52 #ifndef IPPROTO_IPV4
53 #define IPPROTO_IPV4 4
54 #endif
55 #ifndef IPPROTO_TCP
56 #define IPPROTO_TCP 6 /* tcp */
57 #endif
58 #ifndef IPPROTO_EGP
59 #define IPPROTO_EGP 8 /* exterior gateway protocol */
60 #endif
61 #ifndef IPPROTO_PIGP
62 #define IPPROTO_PIGP 9
63 #endif
64 #ifndef IPPROTO_UDP
65 #define IPPROTO_UDP 17 /* user datagram protocol */
66 #endif
67 #ifndef IPPROTO_DCCP
68 #define IPPROTO_DCCP 33 /* datagram congestion control protocol */
69 #endif
70 #ifndef IPPROTO_IPV6
71 #define IPPROTO_IPV6 41
72 #endif
73 #ifndef IPPROTO_ROUTING
74 #define IPPROTO_ROUTING 43 /* IPv6 routing header */
75 #endif
76 #ifndef IPPROTO_FRAGMENT
77 #define IPPROTO_FRAGMENT 44 /* IPv6 fragmentation header */
78 #endif
79 #ifndef IPPROTO_RSVP
80 #define IPPROTO_RSVP 46 /* resource reservation */
81 #endif
82 #ifndef IPPROTO_GRE
83 #define IPPROTO_GRE 47 /* General Routing Encap. */
84 #endif
85 #ifndef IPPROTO_ESP
86 #define IPPROTO_ESP 50 /* SIPP Encap Sec. Payload */
87 #endif
88 #ifndef IPPROTO_AH
89 #define IPPROTO_AH 51 /* SIPP Auth Header */
90 #endif
91 #ifndef IPPROTO_MOBILE
92 #define IPPROTO_MOBILE 55
93 #endif
94 #ifndef IPPROTO_ICMPV6
95 #define IPPROTO_ICMPV6 58 /* ICMPv6 */
96 #endif
97 #ifndef IPPROTO_NONE
98 #define IPPROTO_NONE 59 /* IPv6 no next header */
99 #endif
100 #ifndef IPPROTO_DSTOPTS
101 #define IPPROTO_DSTOPTS 60 /* IPv6 destination options */
102 #endif
103 #ifndef IPPROTO_MOBILITY_OLD
105 * The current Protocol Numbers list says that the IP protocol number for
106 * mobility headers is 135; it cites draft-ietf-mobileip-ipv6-24, but
107 * that draft doesn't actually give a number.
109 * It appears that 62 used to be used, even though that's assigned to
110 * a protocol called CFTP; however, the only reference for CFTP is a
111 * Network Message from BBN back in 1982, so, for now, we support 62,
112 * aas well as 135, as a protocol number for mobility headers.
114 #define IPPROTO_MOBILITY_OLD 62
115 #endif
116 #ifndef IPPROTO_ND
117 #define IPPROTO_ND 77 /* Sun net disk proto (temp.) */
118 #endif
119 #ifndef IPPROTO_EIGRP
120 #define IPPROTO_EIGRP 88 /* Cisco/GXS IGRP */
121 #endif
122 #ifndef IPPROTO_OSPF
123 #define IPPROTO_OSPF 89
124 #endif
125 #ifndef IPPROTO_PIM
126 #define IPPROTO_PIM 103
127 #endif
128 #ifndef IPPROTO_IPCOMP
129 #define IPPROTO_IPCOMP 108
130 #endif
131 #ifndef IPPROTO_VRRP
132 #define IPPROTO_VRRP 112
133 #endif
134 #ifndef IPPROTO_PGM
135 #define IPPROTO_PGM 113
136 #endif
137 #ifndef IPPROTO_SCTP
138 #define IPPROTO_SCTP 132
139 #endif
140 #ifndef IPPROTO_MOBILITY
141 #define IPPROTO_MOBILITY 135
142 #endif