diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-08-12 00:15:40 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-08-12 00:15:40 +0000 |
commit | 2c6e256a872d1252546cefb59bfce7464fa2aa58 (patch) | |
tree | 63965b628fbb6957e1f74557f4024b153354440c /packet.h | |
parent | eb587ac5f1bf0ef98505a9d2125ccaefdbf02f78 (diff) | |
download | wireshark-2c6e256a872d1252546cefb59bfce7464fa2aa58.tar.gz wireshark-2c6e256a872d1252546cefb59bfce7464fa2aa58.tar.bz2 wireshark-2c6e256a872d1252546cefb59bfce7464fa2aa58.zip |
"p_get_proto_data()" should, if it finds an entry, return the pointer
supplied in the "p_add_proto_data()" call that created the entry, not
the pointer to the data structure that holds the protocol and data
arguments to "p_add_proto_data()" (the protocol is uninteresting, as
its value is the value supplied as the "proto" argument to
"p_get_proto_data()".
The "frame_proto_data" structure isn't needed outside the code that
handles it; remove its definition from "packet.h" and put it in
"packet.c".
svn path=/trunk/; revision=2260
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1,7 +1,7 @@ /* packet.h * Definitions for packet disassembly structures and routines * - * $Id: packet.h,v 1.193 2000/08/11 13:34:38 deniel Exp $ + * $Id: packet.h,v 1.194 2000/08/12 00:15:40 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -136,11 +136,6 @@ typedef enum { CHAR_EBCDIC = 1 /* EBCDIC */ } char_enc; -typedef struct _frame_proto_data { - int proto; - void *proto_data; -} frame_proto_data; - /* XXX - some of this stuff is used only while a packet is being dissected; should we keep around a separate data structure for that, to save memory? */ |