diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-10-28 19:01:23 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-10-29 01:03:07 +0000 |
commit | 0257a30de62d1cc19e437b937026a14db3665a6f (patch) | |
tree | 38957dee051811d87c1e462ba50b1cc758319f1b /epan/dissectors/packet-hsrp.c | |
parent | f24d47b316f75165757d14fafcb6504dba6f2078 (diff) |
HSRP(v2): Always display all fields (Like Padding...)
Change-Id: I98df3481154e096a34c24f1a65a02ba54f6f5877
Reviewed-on: https://code.wireshark.org/review/11367
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
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: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-hsrp.c')
-rw-r--r-- | epan/dissectors/packet-hsrp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/epan/dissectors/packet-hsrp.c b/epan/dissectors/packet-hsrp.c index 810f916524..c753a14546 100644 --- a/epan/dissectors/packet-hsrp.c +++ b/epan/dissectors/packet-hsrp.c @@ -186,6 +186,7 @@ static gint hf_hsrp2_auth_data = -1; static gint hf_hsrp2_active_group = -1; static gint hf_hsrp2_passive_group = -1; static gint hf_hsrp2_md5_algorithm = -1; +static gint hf_hsrp2_md5_padding = -1; static gint hf_hsrp2_md5_flags = -1; static gint hf_hsrp2_md5_ip_address= -1; static gint hf_hsrp2_md5_key_id= -1; @@ -340,7 +341,8 @@ process_hsrp_md5_tlv_sequence(tvbuff_t *tvb, proto_tree *hsrp_tree, guint offset md5_auth_tlv = proto_item_add_subtree(ti, ett_hsrp2_md5_auth_tlv); proto_tree_add_item(md5_auth_tlv, hf_hsrp2_md5_algorithm, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; - /* Skip padding field */ + /* padding field */ + proto_tree_add_item(md5_auth_tlv, hf_hsrp2_md5_padding, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; proto_tree_add_item(md5_auth_tlv, hf_hsrp2_md5_flags, tvb, offset, 2, ENC_BIG_ENDIAN); offset+=2; @@ -798,6 +800,11 @@ void proto_register_hsrp(void) FT_UINT8, BASE_DEC, VALS(hsrp2_md5_algorithm_vals), 0x0, "Hash Algorithm used by this group", HFILL }}, + { &hf_hsrp2_md5_padding, + { "Padding", "hsrp2.md5_padding", + FT_UINT8, BASE_HEX, NULL, 0x0, + "Must be zero", HFILL }}, + { &hf_hsrp2_md5_flags, { "MD5 Flags", "hsrp2.md5_flags", FT_UINT8, BASE_DEC, NULL, 0x0, |