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