diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-03-28 18:32:03 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-03-28 18:32:03 +0000 |
commit | 2b86d46d706b3f60e3804b6ee9348752aa601b9a (patch) | |
tree | 73171006c6a2e830fe9b6742f081ab1e0b24131c /packet-ip.h | |
parent | 4932ef3dcc5b76692e982fbb4d17153e998f69ba (diff) |
Jun-ichiro's IPv6 patch is merged in with ethereal and now uses the new
proto*() functions. The configure script tries to use ipv6 name resolution if
it knows the type of ipv6 stack the user has (this can be avoided with the
--disable-ipv6 switch) Additionally, the configure script now deals with wiretap
better. If the user doesn't want to compile wiretap, the wiretap is never
visited. A few unnecessary #includes were removed from some wiretap files, and
a CPP macro was moved from bpf.c to wtap.h.
svn path=/trunk/; revision=229
Diffstat (limited to 'packet-ip.h')
-rw-r--r-- | packet-ip.h | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/packet-ip.h b/packet-ip.h index 2dc52ea39d..a05bfac0d0 100644 --- a/packet-ip.h +++ b/packet-ip.h @@ -1,7 +1,7 @@ /* packet-ip.h * Definitions for IP packet disassembly structures and routines * - * $Id: packet-ip.h,v 1.1 1999/03/23 03:14:38 gram Exp $ + * $Id: packet-ip.h,v 1.2 1999/03/28 18:31:59 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -33,6 +33,32 @@ #define IP_PROTO_UDP 17 #define IP_PROTO_OSPF 89 +#define IP_PROTO_IP 0 /* dummy for IP */ +#define IP_PROTO_HOPOPTS 0 /* IP6 hop-by-hop options */ +#define IP_PROTO_ICMP 1 /* control message protocol */ +#define IP_PROTO_IGMP 2 /* group mgmt protocol */ +#define IP_PROTO_GGP 3 /* gateway^2 (deprecated) */ +#define IP_PROTO_IPIP 4 /* IP inside IP */ +#define IP_PROTO_IPV4 4 /* IP header */ +#define IP_PROTO_TCP 6 /* tcp */ +#define IP_PROTO_EGP 8 /* exterior gateway protocol */ +#define IP_PROTO_PUP 12 /* pup */ +#define IP_PROTO_UDP 17 /* user datagram protocol */ +#define IP_PROTO_IDP 22 /* xns idp */ +#define IP_PROTO_TP 29 /* tp-4 w/ class negotiation */ +#define IP_PROTO_IPV6 41 /* IP6 header */ +#define IP_PROTO_ROUTING 43 /* IP6 routing header */ +#define IP_PROTO_FRAGMENT 44 /* IP6 fragmentation header */ +#define IP_PROTO_ESP 50 /* ESP */ +#define IP_PROTO_AH 51 /* AH */ +#define IP_PROTO_ICMPV6 58 /* ICMP6 */ +#define IP_PROTO_NONE 59 /* IP6 no next header */ +#define IP_PROTO_DSTOPTS 60 /* IP6 no next header */ +#define IP_PROTO_EON 80 /* ISO cnlp */ +#define IP_PROTO_OSPF 89 +#define IP_PROTO_ENCAP 98 /* encapsulation header */ +#define IP_PROTO_PIM 103 /* Protocol Independent Mcast */ + typedef enum { NO_LENGTH, /* option has no data, hence no length */ FIXED_LENGTH, /* option always has the same length */ |