diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-07-08 10:46:23 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-07-08 10:46:23 +0000 |
commit | 57d8e47ad0ef7be6aa8e9d378d9aac2d6468ed27 (patch) | |
tree | 021b7f33838763b124f997460a0242be751b4704 /packet.h | |
parent | e6fea28e9b7a055c845b9201a5490b59fce263f0 (diff) |
Add preference for placement of AH payload, at same level or in subtree.
Move max_len settings in various col_* functions outside of loop.
Add 'writable' flag to col_info. check_col() honors its. dissect_packet()
sets it as TRUE. dissect_ah() optionally sets it to FALSE.
Add col_set_writable() function to set the 'writable' flag. Accepts
frame_data arg just like the rest of the column functions. It checks to
make sure fd->cinfo is not NULL.
svn path=/trunk/; revision=2125
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* packet.h * Definitions for packet disassembly structures and routines * - * $Id: packet.h,v 1.189 2000/05/26 22:08:16 guy Exp $ + * $Id: packet.h,v 1.190 2000/07/08 10:46:23 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -94,6 +94,7 @@ typedef struct _column_info { gint *col_width; /* Column widths to use during a "-S" capture */ gchar **col_title; /* Column titles */ gchar **col_data; /* Column data */ + gboolean writable; /* Are we stil writing to the columns? */ } column_info; #define COL_MAX_LEN 256 @@ -302,6 +303,8 @@ const char *decode_enumerated_bitfield(guint32 val, guint32 mask, int width, const value_string *tab, const char *fmt); const char *decode_numeric_bitfield(guint32 val, guint32 mask, int width, const char *fmt); + +void col_set_writable(frame_data *fd, gboolean writable); gint check_col(frame_data *, gint); #if __GNUC__ == 2 void col_add_fstr(frame_data *, gint, gchar *, ...) |