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.h | |
parent | 4932ef3dcc5b76692e982fbb4d17153e998f69ba (diff) | |
download | wireshark-2b86d46d706b3f60e3804b6ee9348752aa601b9a.tar.gz wireshark-2b86d46d706b3f60e3804b6ee9348752aa601b9a.tar.bz2 wireshark-2b86d46d706b3f60e3804b6ee9348752aa601b9a.zip |
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.h')
-rw-r--r-- | packet.h | 25 |
1 files changed, 22 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* packet.h * Definitions for packet disassembly structures and routines * - * $Id: packet.h,v 1.41 1999/03/23 03:14:45 gram Exp $ + * $Id: packet.h,v 1.42 1999/03/28 18:32:00 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -54,8 +54,19 @@ #define hi_nibble(b) ((b & 0xf0) >> 4) #define lo_nibble(b) (b & 0x0f) +/* Byte ordering */ +#ifndef BYTE_ORDER + #define LITTLE_ENDIAN 4321 + #define BIG_ENDIAN 1234 + #ifdef WORDS_BIGENDIAN + #define BYTE_ORDER BIG_ENDIAN + #else + #define BYTE_ORDER LITTLE_ENDIAN + #endif +#endif + /* Useful when highlighting regions inside a dissect_*() function. With this - * macro, you can highlight from the start of the packet to the end of the + * macro, you can highlight from an arbitrary offset to the end of the * frame. See dissect_data() for an example. */ #define END_OF_FRAME (fd->cap_len - offset) @@ -196,6 +207,11 @@ enum { ETT_CDP, ETT_HTTP, ETT_TFTP, + ETT_AH, + ETT_ESP, + ETT_ICMPv6, + ETT_ICMPv6OPT, + ETT_ICMPv6FLAG, NUM_TREE_TYPES /* last item number plus one */ }; @@ -250,7 +266,7 @@ proto_item* proto_tree_add_item(proto_tree *tree, gint start, gint len, __attribute__((format (printf, 4, 5))); #else proto_item* proto_tree_add_item(proto_tree *tree, gint start, gint len, - gchar *format, ...) + gchar *format, ...); #endif void dissect_packet(const u_char *, frame_data *, proto_tree *); @@ -293,6 +309,7 @@ void dissect_tr(const u_char *, frame_data *, proto_tree *); * tree * * They should never modify the packet data. */ +int dissect_ah(const u_char *, int, frame_data *, proto_tree *); void dissect_aarp(const u_char *, int, frame_data *, proto_tree *); void dissect_arp(const u_char *, int, frame_data *, proto_tree *); void dissect_bootp(const u_char *, int, frame_data *, proto_tree *); @@ -300,9 +317,11 @@ void dissect_cdp(const u_char *, int, frame_data *, proto_tree *); void dissect_data(const u_char *, int, frame_data *, proto_tree *); void dissect_ddp(const u_char *, int, frame_data *, proto_tree *); void dissect_dns(const u_char *, int, frame_data *, proto_tree *); +void dissect_esp(const u_char *, int, frame_data *, proto_tree *); void dissect_giop(const u_char *, int, frame_data *, proto_tree *); void dissect_http(const u_char *, int, frame_data *, proto_tree *); void dissect_icmp(const u_char *, int, frame_data *, proto_tree *); +void dissect_icmpv6(const u_char *, int, frame_data *, proto_tree *); void dissect_igmp(const u_char *, int, frame_data *, proto_tree *); void dissect_ip(const u_char *, int, frame_data *, proto_tree *); void dissect_ipv6(const u_char *, int, frame_data *, proto_tree *); |