aboutsummaryrefslogtreecommitdiffstats
path: root/packet.h
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@ns.aus.com>2000-03-26 06:57:41 +0000
committerRichard Sharpe <sharpe@ns.aus.com>2000-03-26 06:57:41 +0000
commit92646c4b3cf7394cdbb5ce6fb43c87d27e207f17 (patch)
tree6530a58f66d7b883e68e9973777385087ec33139 /packet.h
parentdf1a7250cf18b6c44c87466892f74dd1a1cb3fcf (diff)
First pass at per frame proto data. Keep each proto block as a GSList list.
Use glib as far as possible. Currently have data structures and routines defined ... Next will write the routines ... svn path=/trunk/; revision=1748
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/packet.h b/packet.h
index e1997888ef..4c9ee729a2 100644
--- a/packet.h
+++ b/packet.h
@@ -1,7 +1,7 @@
/* packet.h
* Definitions for packet disassembly structures and routines
*
- * $Id: packet.h,v 1.174 2000/03/08 06:47:51 guy Exp $
+ * $Id: packet.h,v 1.175 2000/03/26 06:57:41 sharpe Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -114,6 +114,11 @@ typedef enum {
CHAR_EBCDIC /* 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?
@@ -123,6 +128,7 @@ typedef enum {
typedef struct _frame_data {
struct _frame_data *next; /* Next element in list */
struct _frame_data *prev; /* Previous element in list */
+ GSList *pfd; /* Per frame proto data */
guint32 num; /* Frame number */
guint32 pkt_len; /* Packet length */
guint32 cap_len; /* Amount actually captured */
@@ -254,6 +260,9 @@ void col_append_str(frame_data *, gint, gchar *);
void col_set_cls_time(frame_data *, int);
void fill_in_columns(frame_data *);
+void p_add_proto_data(frame_data *, int, void *);
+void *p_get_proto_data(frame_data *, int);
+
void blank_packetinfo(void);
/* Allow protocols to register "init" routines, which are called before