ipproto.h revision 235530
1127668Sbms/*
2127668Sbms * Copyright (c) 1982, 1986, 1990, 1993
3127668Sbms *	The Regents of the University of California.  All rights reserved.
4127668Sbms *
5127668Sbms * Redistribution and use in source and binary forms, with or without
6127668Sbms * modification, are permitted provided that the following conditions
7127668Sbms * are met:
8127668Sbms * 1. Redistributions of source code must retain the above copyright
9127668Sbms *    notice, this list of conditions and the following disclaimer.
10127668Sbms * 2. Redistributions in binary form must reproduce the above copyright
11127668Sbms *    notice, this list of conditions and the following disclaimer in the
12127668Sbms *    documentation and/or other materials provided with the distribution.
13127668Sbms * 3. All advertising materials mentioning features or use of this software
14127668Sbms *    must display the following acknowledgement:
15127668Sbms *	This product includes software developed by the University of
16127668Sbms *	California, Berkeley and its contributors.
17127668Sbms * 4. Neither the name of the University nor the names of its contributors
18127668Sbms *    may be used to endorse or promote products derived from this software
19127668Sbms *    without specific prior written permission.
20127668Sbms *
21127668Sbms * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22127668Sbms * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23127668Sbms * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24127668Sbms * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25127668Sbms * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26127668Sbms * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27127668Sbms * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28127668Sbms * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29127668Sbms * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30127668Sbms * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31127668Sbms * SUCH DAMAGE.
32127668Sbms *
33190207Srpaulo * @(#) $Header: /tcpdump/master/tcpdump/ipproto.h,v 1.6 2005-09-20 06:01:22 guy Exp $ (LBL)
34127668Sbms *
35127668Sbms * From:
36127668Sbms *	@(#)in.h	8.3 (Berkeley) 1/3/94
37127668Sbms * $FreeBSD: head/contrib/tcpdump/ipproto.h 235530 2012-05-17 05:11:57Z delphij $
38190207Srpaulo * FreeBSD: src/sys/netinet/in.h,v 1.38.2.3 1999/08/29 16:29:34 peter Exp
39127668Sbms */
40127668Sbms
41214478Srpauloextern const struct tok ipproto_values[];
42146773Ssam
43127668Sbms#ifndef IPPROTO_IP
44127668Sbms#define	IPPROTO_IP		0		/* dummy for IP */
45127668Sbms#endif
46127668Sbms#ifndef IPPROTO_HOPOPTS
47127668Sbms#define IPPROTO_HOPOPTS		0		/* IPv6 hop-by-hop options */
48127668Sbms#endif
49127668Sbms#ifndef IPPROTO_ICMP
50127668Sbms#define	IPPROTO_ICMP		1		/* control message protocol */
51127668Sbms#endif
52127668Sbms#ifndef IPPROTO_IGMP
53127668Sbms#define	IPPROTO_IGMP		2		/* group mgmt protocol */
54127668Sbms#endif
55127668Sbms#ifndef IPPROTO_IPV4
56127668Sbms#define IPPROTO_IPV4		4
57127668Sbms#endif
58127668Sbms#ifndef IPPROTO_TCP
59127668Sbms#define	IPPROTO_TCP		6		/* tcp */
60127668Sbms#endif
61127668Sbms#ifndef IPPROTO_EGP
62127668Sbms#define	IPPROTO_EGP		8		/* exterior gateway protocol */
63127668Sbms#endif
64146773Ssam#ifndef IPPROTO_PIGP
65146773Ssam#define IPPROTO_PIGP		9
66127668Sbms#endif
67127668Sbms#ifndef IPPROTO_UDP
68127668Sbms#define	IPPROTO_UDP		17		/* user datagram protocol */
69127668Sbms#endif
70162017Ssam#ifndef IPPROTO_DCCP
71162017Ssam#define	IPPROTO_DCCP		33		/* datagram congestion control protocol */
72162017Ssam#endif
73127668Sbms#ifndef IPPROTO_IPV6
74127668Sbms#define IPPROTO_IPV6		41
75127668Sbms#endif
76127668Sbms#ifndef IPPROTO_ROUTING
77127668Sbms#define IPPROTO_ROUTING		43		/* IPv6 routing header */
78127668Sbms#endif
79127668Sbms#ifndef IPPROTO_FRAGMENT
80127668Sbms#define IPPROTO_FRAGMENT	44		/* IPv6 fragmentation header */
81127668Sbms#endif
82127668Sbms#ifndef IPPROTO_RSVP
83127668Sbms#define IPPROTO_RSVP		46 		/* resource reservation */
84127668Sbms#endif
85127668Sbms#ifndef IPPROTO_GRE
86127668Sbms#define	IPPROTO_GRE		47		/* General Routing Encap. */
87127668Sbms#endif
88127668Sbms#ifndef IPPROTO_ESP
89127668Sbms#define	IPPROTO_ESP		50		/* SIPP Encap Sec. Payload */
90127668Sbms#endif
91127668Sbms#ifndef IPPROTO_AH
92127668Sbms#define	IPPROTO_AH		51		/* SIPP Auth Header */
93127668Sbms#endif
94127668Sbms#ifndef IPPROTO_MOBILE
95127668Sbms#define IPPROTO_MOBILE		55
96127668Sbms#endif
97127668Sbms#ifndef IPPROTO_ICMPV6
98127668Sbms#define IPPROTO_ICMPV6		58		/* ICMPv6 */
99127668Sbms#endif
100127668Sbms#ifndef IPPROTO_NONE
101127668Sbms#define IPPROTO_NONE		59		/* IPv6 no next header */
102127668Sbms#endif
103127668Sbms#ifndef IPPROTO_DSTOPTS
104127668Sbms#define IPPROTO_DSTOPTS		60		/* IPv6 destination options */
105127668Sbms#endif
106127668Sbms#ifndef IPPROTO_MOBILITY_OLD
107127668Sbms/*
108127668Sbms * The current Protocol Numbers list says that the IP protocol number for
109127668Sbms * mobility headers is 135; it cites draft-ietf-mobileip-ipv6-24, but
110127668Sbms * that draft doesn't actually give a number.
111127668Sbms *
112127668Sbms * It appears that 62 used to be used, even though that's assigned to
113127668Sbms * a protocol called CFTP; however, the only reference for CFTP is a
114127668Sbms * Network Message from BBN back in 1982, so, for now, we support 62,
115127668Sbms * aas well as 135, as a protocol number for mobility headers.
116127668Sbms */
117127668Sbms#define IPPROTO_MOBILITY_OLD	62
118127668Sbms#endif
119127668Sbms#ifndef IPPROTO_ND
120127668Sbms#define	IPPROTO_ND		77		/* Sun net disk proto (temp.) */
121127668Sbms#endif
122146773Ssam#ifndef IPPROTO_EIGRP
123146773Ssam#define	IPPROTO_EIGRP		88		/* Cisco/GXS IGRP */
124127668Sbms#endif
125127668Sbms#ifndef IPPROTO_OSPF
126127668Sbms#define IPPROTO_OSPF		89
127127668Sbms#endif
128127668Sbms#ifndef IPPROTO_PIM
129127668Sbms#define IPPROTO_PIM		103
130127668Sbms#endif
131127668Sbms#ifndef IPPROTO_IPCOMP
132127668Sbms#define IPPROTO_IPCOMP		108
133127668Sbms#endif
134127668Sbms#ifndef IPPROTO_VRRP
135127668Sbms#define IPPROTO_VRRP		112
136127668Sbms#endif
137235530Sdelphij#ifndef IPPROTO_CARP
138235530Sdelphij#define IPPROTO_CARP		112
139235530Sdelphij#endif
140147899Ssam#ifndef IPPROTO_PGM
141147899Ssam#define IPPROTO_PGM             113
142147899Ssam#endif
143127668Sbms#ifndef IPPROTO_SCTP
144127668Sbms#define IPPROTO_SCTP		132
145127668Sbms#endif
146127668Sbms#ifndef IPPROTO_MOBILITY
147127668Sbms#define IPPROTO_MOBILITY	135
148127668Sbms#endif
149