diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-08-04 04:04:35 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-08-04 04:04:35 +0000 |
commit | ddfdc5bfb137e2db7e4d10f860a66f08b3718f5d (patch) | |
tree | ba532188860e3ac77b8fab9f4a46d05e2f83b4be /epan/packet_info.h | |
parent | 1b3f1fca49c886b504c863d8ad654860c1edd0a4 (diff) | |
download | wireshark-ddfdc5bfb137e2db7e4d10f860a66f08b3718f5d.tar.gz wireshark-ddfdc5bfb137e2db7e4d10f860a66f08b3718f5d.tar.bz2 wireshark-ddfdc5bfb137e2db7e4d10f860a66f08b3718f5d.zip |
Replace the protocol-specific data in the "packet_info" structure with a
"void *" that a dissector can set to point to such a structure; that
means that the stuff in the epan directory doesn't have to know anything
about the protocol-specific private data one dissector passes to
another, and that structure doesn't have to be changed if a dissector
wants to pass some new type of data to another dissector.
svn path=/trunk/; revision=3818
Diffstat (limited to 'epan/packet_info.h')
-rw-r--r-- | epan/packet_info.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/epan/packet_info.h b/epan/packet_info.h index be1d1d9622..f236b7559a 100644 --- a/epan/packet_info.h +++ b/epan/packet_info.h @@ -1,7 +1,7 @@ /* packet_info.h * Definitions for packet info structures and routines * - * $Id: packet_info.h,v 1.4 2001/06/04 07:27:50 guy Exp $ + * $Id: packet_info.h,v 1.5 2001/08/04 04:04:35 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -111,15 +111,7 @@ typedef struct _packet_info { int iplen; int iphdrlen; int p2p_dir; - union { - struct { - guint8 type; - guint8 flags; - guint16 serviceid; - guint32 callnumber; - guint32 seq; - } rx; /* fields specific for RX protocol */ - } ps; /* protocol specific data */ + void *private; /* pointer to data passed from one dissector to another */ } packet_info; void blank_packetinfo(void); |