diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-12-17 22:31:42 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-12-17 22:31:42 +0000 |
commit | dde239333a7454141aaf0c42d6b961a3c962735c (patch) | |
tree | 46ffb11dbd5a4d1b0e3a9a7a6ba8841f530042c0 | |
parent | 12e9ee56ac99916ae2a83fd4436912d0598c4cb1 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4415 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | ethereal_gen.py | 9 |
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); |