diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-09-18 07:39:14 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-09-18 07:39:14 +0000 |
commit | f218d6605324ef2e75622deb982a0b9a3a847303 (patch) | |
tree | 1a9d65f544089d0ca30baefa74a5a9dca2aeef71 /epan/dissectors/packet-gtpv2.c | |
parent | 15dca08b65b4c898edcbc0c3acc1eb6439f1630f (diff) |
Only provide the parameter data in the tvb used when calling subdissector for private extensions.
Add vendor ID to item.
Show flags in hex.
svn path=/trunk/; revision=44967
Diffstat (limited to 'epan/dissectors/packet-gtpv2.c')
-rw-r--r-- | epan/dissectors/packet-gtpv2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gtpv2.c b/epan/dissectors/packet-gtpv2.c index 2dd2ccf9b4..2e23df9a38 100644 --- a/epan/dissectors/packet-gtpv2.c +++ b/epan/dissectors/packet-gtpv2.c @@ -4345,7 +4345,9 @@ dissect_gtpv2_private_ext(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tre proto_tree_add_item(tree, hf_gtpv2_enterprise_id, tvb, offset, 2, ENC_BIG_ENDIAN); offset+=2; - next_tvb = tvb_new_subset_remaining(tvb, offset); + proto_item_append_text(item, "%s (%u)", val_to_str_ext_const(ext_id, &sminmpec_values_ext, "Unknown"),ext_id); + + next_tvb = tvb_new_subset(tvb, offset, length-2, length-2); if(dissector_try_uint(gtpv2_priv_ext_dissector_table, ext_id, next_tvb, pinfo, tree)) return; @@ -5167,7 +5169,7 @@ void proto_register_gtpv2(void) }, {&hf_gtpv2_flags, {"Flags", "gtpv2.flags", - FT_UINT8, BASE_DEC, NULL, 0x0, + FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL} }, {&hf_gtpv2_version, |