diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2016-09-16 10:14:00 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-09-16 13:02:33 +0000 |
commit | 2492fe41ba165738aa8667ebfe7f9e96f69ef350 (patch) | |
tree | c0cdc6c3842cf56d49a29f0bd50269280e462d9d /epan/dissectors/packet-vtp.c | |
parent | e4aa7be94943369c7f8119d7f15135d3f07b56df (diff) |
VTP: Always display reserved/unsed fields
Change-Id: Ib0b065c20e599567224c05068dad5bd24a711609
Reviewed-on: https://code.wireshark.org/review/17728
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-vtp.c')
-rw-r--r-- | epan/dissectors/packet-vtp.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/epan/dissectors/packet-vtp.c b/epan/dissectors/packet-vtp.c index 3576a20baa..4db4deb7b1 100644 --- a/epan/dissectors/packet-vtp.c +++ b/epan/dissectors/packet-vtp.c @@ -72,6 +72,7 @@ static int hf_vtp_vlan_max_are_hop_count = -1; static int hf_vtp_vlan_max_ste_hop_count = -1; static int hf_vtp_vlan_backup_crf_mode = -1; static int hf_vtp_vlan_data = -1; +static int hf_vtp_reserved = -1; static gint ett_vtp = -1; static gint ett_vtp_vlan_info = -1; @@ -212,7 +213,8 @@ dissect_vtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) break; case ADVERT_REQUEST: - offset += 1; /* skip reserved field */ + proto_tree_add_item(vtp_tree, hf_vtp_reserved, tvb, offset, 1, ENC_NA); + offset += 1; proto_tree_add_item(vtp_tree, hf_vtp_md_len, tvb, offset, 1, ENC_BIG_ENDIAN); offset += 1; @@ -224,7 +226,8 @@ dissect_vtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) break; case JOIN_MSG: - offset += 1; /* skip reserved/unused field */ + proto_tree_add_item(vtp_tree, hf_vtp_reserved, tvb, offset, 1, ENC_NA); + offset += 1; proto_tree_add_item(vtp_tree, hf_vtp_md_len, tvb, offset, 1, ENC_BIG_ENDIAN); offset += 1; @@ -651,6 +654,10 @@ proto_register_vtp(void) { &hf_vtp_vlan_data, { "Data", "vtp.vlan_info.data", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }}, + + { &hf_vtp_reserved, + { "Reserved", "vtp.reserved", FT_BYTES, BASE_NONE, NULL, 0, + NULL, HFILL }}, }; static gint *ett[] = { |