aboutsummaryrefslogtreecommitdiffstats
path: root/packet.h
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-04-13 20:39:38 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-04-13 20:39:38 +0000
commitb218a8f5504f8bbc83f8e0ef9649cb7df9e109af (patch)
tree8a453940e94dc4accd5f61af0f2b789b4e0447a0 /packet.h
parent6a1c248625b669b42b9cedb732f5d39938cd0b74 (diff)
Consolidate flags in struct frame_data, and add "visited" flag. Use
it in SOCKS dissector. (Okay, how many times am I going to modify packet.h today, forcing you to re-compile everything? :-) svn path=/trunk/; revision=1850
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/packet.h b/packet.h
index 8e8bc9f834..7cbd68878f 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.180 2000/04/13 18:18:54 gram Exp $
+ * $Id: packet.h,v 1.181 2000/04/13 20:39:17 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -110,8 +110,8 @@ typedef struct _packet_counts {
/* Types of character encodings */
typedef enum {
- CHAR_ASCII, /* ASCII */
- CHAR_EBCDIC /* EBCDIC */
+ CHAR_ASCII = 0, /* ASCII */
+ CHAR_EBCDIC = 1 /* EBCDIC */
} char_enc;
typedef struct _frame_proto_data {
@@ -141,8 +141,11 @@ typedef struct _frame_data {
long file_off; /* File offset */
column_info *cinfo; /* Column formatting information */
int lnk_t; /* Per-packet encapsulation/data-link type */
- gboolean passed_dfilter; /* TRUE = display, FALSE = no display */
- char_enc encoding; /* Character encoding (ASCII, EBCDIC...) */
+ struct {
+ unsigned int passed_dfilter : 1; /* 1 = display, 0 = no display */
+ unsigned int encoding : 2; /* Character encoding (ASCII, EBCDIC...) */
+ unsigned int visited : 1; /* Has this packet been visited yet? 1=Yes,0=No*/
+ } flags;
union pseudo_header pseudo_header; /* "pseudo-header" from wiretap */
} frame_data;