diff options
author | AndersBroman <anders.broman@ericsson.com> | 2017-11-29 09:14:32 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-11-29 09:02:56 +0000 |
commit | d7bab0b46e72eb30e50ad1b6a0b56275394406b4 (patch) | |
tree | 1cfc47054726a6c6c5bfe44a972ba5c4b118e030 | |
parent | e1850de29442f4de75e43544dfadd855e36dd6b3 (diff) |
[packer-ehdlc.c] Mark some fields as generated, enhance info col.
Change-Id: I10241389dbd3c463b36c5dfcd7a4fa929a1bbf6a
Reviewed-on: https://code.wireshark.org/review/24644
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r-- | epan/dissectors/packet-ehdlc.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ehdlc.c b/epan/dissectors/packet-ehdlc.c index e166a8b1c3..5e7ef084d3 100644 --- a/epan/dissectors/packet-ehdlc.c +++ b/epan/dissectors/packet-ehdlc.c @@ -231,6 +231,10 @@ dissect_ehdlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U ctei = (hdr2 >> 9) & 0xF; tei = tei_from_ctei(ctei); + /* Add TEI to INFO column */ + col_append_fstr(pinfo->cinfo, COL_INFO, " | TEI:1%u | ", tei); + col_set_fence(pinfo->cinfo, COL_INFO); + if (tree) { /* Use MIN(...,...) in the following to prevent a premature */ /* exception before we try to dissect whatever is available. */ @@ -243,12 +247,15 @@ dissect_ehdlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(ehdlc_tree, hf_ehdlc_ctei, tvb, offset, 1, ENC_BIG_ENDIAN); - proto_tree_add_uint(ehdlc_tree, hf_ehdlc_c_r, + ti = proto_tree_add_uint(ehdlc_tree, hf_ehdlc_c_r, tvb, offset, 1, c_r); - proto_tree_add_uint(ehdlc_tree, hf_ehdlc_sapi, + PROTO_ITEM_SET_GENERATED(ti); + ti = proto_tree_add_uint(ehdlc_tree, hf_ehdlc_sapi, tvb, offset, 1, sapi); - proto_tree_add_uint(ehdlc_tree, hf_ehdlc_tei, + PROTO_ITEM_SET_GENERATED(ti); + ti = proto_tree_add_uint(ehdlc_tree, hf_ehdlc_tei, tvb, offset, 1, tei); + PROTO_ITEM_SET_GENERATED(ti); proto_tree_add_item(ehdlc_tree, hf_ehdlc_data_len, tvb, offset, 2, ENC_BIG_ENDIAN); } |