diff options
author | Michael Mann <mmann78@netscape.net> | 2013-06-14 19:46:54 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-06-14 19:46:54 +0000 |
commit | f42e5bc9c0eb6c0e228018711694c80cdc5bc5c1 (patch) | |
tree | c84185fcaa21ac4b694206b5d263a78a22bea491 /epan/dissectors/packet-zebra.c | |
parent | c5d092ec3a228d55fcedd88d86f78006abbd7064 (diff) |
Remove check_col() and the occasional tree.
This leaves just the Pidl dissectors remaining for removal of check_col() in the dissectors directory. A small handful of check_col() calls remain outside of the dissectors.
svn path=/trunk/; revision=49941
Diffstat (limited to 'epan/dissectors/packet-zebra.c')
-rw-r--r-- | epan/dissectors/packet-zebra.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-zebra.c b/epan/dissectors/packet-zebra.c index e1364be181..9d3d9d6112 100644 --- a/epan/dissectors/packet-zebra.c +++ b/epan/dissectors/packet-zebra.c @@ -442,10 +442,9 @@ dissect_zebra(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) left = tvb_reported_length(tvb); offset = 0; - if (check_col(pinfo->cinfo, COL_INFO)) { - col_set_str(pinfo->cinfo, COL_INFO, + col_set_str(pinfo->cinfo, COL_INFO, request? "ZEBRA Request" : "ZEBRA Reply"); - } + if (tree) { ti = proto_tree_add_item(tree, proto_zebra, tvb, offset, -1, ENC_NA); |