diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-04-16 04:52:55 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-04-16 04:52:55 +0000 |
commit | 14183154957e431e7b63c8551f6cdfe4c4386680 (patch) | |
tree | d91c4e7b602692fac4cd86a53d42ce5230bcf3c0 /tethereal.c | |
parent | 1f61f0a234f666465cfc9979fee59a87a8545c3f (diff) |
Add the notion of a "fence" to columns. A dissector can set the fence
to "protect" what's currently in the column, so that attempts to clear
the column will only clear stuff after the fence and attempts to
overwrite the column will append stuff after the fence. This, for
example, allows a dissector to arrange that the Info column contain
information for its protocol and for protocols running atop it.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7466 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tethereal.c')
-rw-r--r-- | tethereal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tethereal.c b/tethereal.c index 2a2a548be4..8de42a8d59 100644 --- a/tethereal.c +++ b/tethereal.c @@ -1,6 +1,6 @@ /* tethereal.c * - * $Id: tethereal.c,v 1.178 2003/03/12 00:07:32 guy Exp $ + * $Id: tethereal.c,v 1.179 2003/04/16 04:52:50 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -792,7 +792,7 @@ main(int argc, char *argv[]) cfile.cinfo.col_buf[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_INFO_LEN); else cfile.cinfo.col_buf[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN); - + cfile.cinfo.col_fence[i] = 0; cfile.cinfo.col_expr[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN); cfile.cinfo.col_expr_val[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN); } |