aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal_gen.py
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-12-17 22:31:42 +0000
committerGuy Harris <guy@alum.mit.edu>2001-12-17 22:31:42 +0000
commitb2533029da1b658da9d92c00611c22ae51caa512 (patch)
tree46ffb11dbd5a4d1b0e3a9a7a6ba8841f530042c0 /ethereal_gen.py
parent2953cd1a97642fab1c75307ae6e10356da341ed2 (diff)
From Frank Singleton: change ethereal_gen.py to match the current
calling sequence for "check_col()" and "col_add_str()". While we're at it, change it to use "col_set_str()" rather than "col_add_str()", and to clear the Info column as well. svn path=/trunk/; revision=4415
Diffstat (limited to 'ethereal_gen.py')
-rw-r--r--ethereal_gen.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/ethereal_gen.py b/ethereal_gen.py
index 4ae3d5dff1..edcd1d86a6 100644
--- a/ethereal_gen.py
+++ b/ethereal_gen.py
@@ -1,6 +1,6 @@
# -*- python -*-
#
-# $Id: ethereal_gen.py,v 1.16 2001/11/19 23:00:12 guy Exp $
+# $Id: ethereal_gen.py,v 1.17 2001/12/17 22:31:42 guy Exp $
#
# ethereal_gen.py (part of idl2eth)
#
@@ -2113,8 +2113,11 @@ static gboolean dissect_@dissname@(tvbuff_t *tvb, packet_info *pinfo, proto_tree
pinfo->current_proto = \"@disprot@\";
- if (check_col(pinfo->fd, COL_PROTOCOL))
- col_add_str(pinfo->fd, COL_PROTOCOL, \"@disprot@\");
+ if (check_col(pinfo->cinfo, COL_PROTOCOL))
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, \"@disprot@\");
+
+ if (check_col(pinfo->cinfo, COL_INFO))
+ col_clear(pinfo->cinfo, COL_INFO))
if (ptree) {
ti = proto_tree_add_item(ptree, proto_@dissname@, tvb, *offset, tvb_length(tvb) - *offset, FALSE);