diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-04-16 04:52:55 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-04-16 04:52:55 +0000 |
commit | 24ec2110d129373d9652f1667eed8faa075cd8f0 (patch) | |
tree | d91c4e7b602692fac4cd86a53d42ce5230bcf3c0 /tethereal.c | |
parent | 77923868c96774a53ece0d097329dd20834ce6a9 (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.
svn path=/trunk/; revision=7466
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); } |