diff options
author | Michael Mann <mmann78@netscape.net> | 2014-09-10 19:58:33 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-09-11 01:57:02 +0000 |
commit | 8a580b3e28c6c2358a917db9127fcc173309a02d (patch) | |
tree | f5f014f9ab351deef202ccda98029046d22de622 /epan/dissectors/packet-rip.c | |
parent | 76d776ee8a1567c8ef882ba2c7af62e37f173a5a (diff) |
Make all "padding" fields filterable
Change-Id: Ic4e4d9142a9b05ef3b628fac2e8766014c5fccec
Reviewed-on: https://code.wireshark.org/review/4073
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-rip.c')
-rw-r--r-- | epan/dissectors/packet-rip.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rip.c b/epan/dissectors/packet-rip.c index 855a895e48..ad6638f6fa 100644 --- a/epan/dissectors/packet-rip.c +++ b/epan/dissectors/packet-rip.c @@ -136,6 +136,9 @@ static header_field_info hfi_rip_route_tag RIP_HFI_INIT = { "Route Tag", "rip.route_tag", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }; +static header_field_info hfi_rip_zero_padding RIP_HFI_INIT = + { "Zero Padding", "rip.zero_padding", FT_STRING, BASE_NONE, + NULL, 0, "Authentication password", HFILL }; static gint ett_rip = -1; static gint ett_rip_vec = -1; static gint ett_auth_vec = -1; @@ -309,8 +312,7 @@ dissect_rip_authentication(tvbuff_t *tvb, int offset, proto_tree *tree) val = tvb_get_ntohl( tvb, offset+8 ); proto_tree_add_text( rip_authentication_tree, tvb, offset+8, 4, "Seq num: %u" , val ); - proto_tree_add_text( rip_authentication_tree, tvb, offset+12, 8, - "Zero Padding" ); + proto_tree_add_item( rip_authentication_tree, &hfi_rip_zero_padding, tvb, offset+12, 8, ENC_NA); rip_authentication_tree = proto_tree_add_subtree( rip_authentication_tree, tvb, offset-4+digest_off, MD5_AUTH_DATA_LEN+4, ett_auth_vec, NULL, "Authentication Data Trailer" ); proto_tree_add_text( rip_authentication_tree, tvb, offset-4+digest_off+4, |