diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-10-05 20:46:34 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-10-05 20:46:34 +0000 |
commit | 710f41b08596fe303a0aed12522f51b1e5aa62d5 (patch) | |
tree | 59c9b869286d4dd4bbb0913009be1016d6be33c6 /epan/dissectors/packet-p_mul.c | |
parent | 1a322b695511b651935415ca01adaa3461436f8d (diff) |
Avoid printing double p_mul.pdu_type in custom columns.
svn path=/trunk/; revision=34387
Diffstat (limited to 'epan/dissectors/packet-p_mul.c')
-rw-r--r-- | epan/dissectors/packet-p_mul.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/dissectors/packet-p_mul.c b/epan/dissectors/packet-p_mul.c index 25873291ef..67a19e4f7a 100644 --- a/epan/dissectors/packet-p_mul.c +++ b/epan/dissectors/packet-p_mul.c @@ -86,6 +86,7 @@ static int hf_map_first = -1; static int hf_map_last = -1; static int hf_map_unused = -1; static int hf_pdu_type = -1; +static int hf_pdu_type_value = -1; static int hf_no_pdus = -1; static int hf_seq_no = -1; static int hf_unused8 = -1; @@ -877,7 +878,7 @@ static void dissect_p_mul (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_item (field_tree, hf_map_unused, tvb, offset, 1, FALSE); break; } - proto_tree_add_item (field_tree, hf_pdu_type, tvb, offset, 1, FALSE); + proto_tree_add_item (field_tree, hf_pdu_type_value, tvb, offset, 1, FALSE); offset += 1; switch (pdu_type) { @@ -1368,6 +1369,9 @@ void proto_register_p_mul (void) { &hf_pdu_type, { "PDU Type", "p_mul.pdu_type", FT_UINT8, BASE_DEC, VALS (pdu_vals), 0x3F, NULL, HFILL } }, + { &hf_pdu_type_value, + { "PDU Type", "p_mul.pdu_type_value", FT_UINT8, BASE_DEC, + VALS (pdu_vals), 0x3F, NULL, HFILL } }, { &hf_no_pdus, { "Total Number of PDUs", "p_mul.no_pdus", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, |