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>
This commit is contained in:
Alexis La Goutte 2015-10-28 19:01:23 +01:00 committed by Michael Mann
parent f24d47b316
commit 0257a30de6
1 changed files with 8 additions and 1 deletions

View File

@ -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,