diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-09-26 08:25:18 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-09-26 08:25:18 +0000 |
commit | 4b952c1324c2dd7ad9b5208550eb4e1c79aa2874 (patch) | |
tree | 78a5794489900be2b0c0f74a21bf9f587bd83589 /epan/dissectors/packet-bofl.c | |
parent | d06af0f7717ab04eaf592dd109fb8a58c18eea23 (diff) |
Get rid of check_col, while at it set ENC.
svn path=/trunk/; revision=39146
Diffstat (limited to 'epan/dissectors/packet-bofl.c')
-rw-r--r-- | epan/dissectors/packet-bofl.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/epan/dissectors/packet-bofl.c b/epan/dissectors/packet-bofl.c index c1f29916b6..0d872e620b 100644 --- a/epan/dissectors/packet-bofl.c +++ b/epan/dissectors/packet-bofl.c @@ -73,25 +73,22 @@ dissect_bofl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_clear(pinfo->cinfo, COL_INFO); if (tree) { - ti = proto_tree_add_item(tree, proto_bofl, tvb, 0, -1, FALSE); + ti = proto_tree_add_item(tree, proto_bofl, tvb, 0, -1, ENC_BIG_ENDIAN); bofl_tree = proto_item_add_subtree(ti, ett_bofl); } pdu = tvb_get_ntohl(tvb, 0); - if (check_col(pinfo->cinfo, COL_INFO)) { col_add_fstr(pinfo->cinfo, COL_INFO, "PDU: 0x%08x", pdu); - } if (tree) - proto_tree_add_uint(bofl_tree, hf_bofl_pdu, tvb, 0, 4, pdu); + proto_tree_add_uint(bofl_tree, hf_bofl_pdu, tvb, 0, 4, pdu); sequence = tvb_get_ntohl(tvb, 4); - if (check_col(pinfo->cinfo, COL_INFO)) { + col_append_fstr(pinfo->cinfo, COL_INFO, " Sequence: %u", sequence); - } if (tree) { - proto_tree_add_uint(bofl_tree, hf_bofl_sequence, tvb, 4, 4, sequence); + proto_tree_add_uint(bofl_tree, hf_bofl_sequence, tvb, 4, 4, sequence); len = tvb_length_remaining(tvb, 8); if (len > 0) |