diff options
author | Dario Lombardo <lomato@gmail.com> | 2015-03-02 15:09:00 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-03-02 14:45:00 +0000 |
commit | 3f623946748162236d64ae53e6526a15cb440888 (patch) | |
tree | 20705132b2d6d7b333231a521a6ddd47404a798d /epan/dissectors/packet-dvmrp.c | |
parent | c35ca6c051adb28c321db54cc138f18637977c9a (diff) |
dvmrp: added reserved field
Change-Id: Ic46acac05638bf59910e3cb0986ed14b2257ed55
Reviewed-on: https://code.wireshark.org/review/7483
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-dvmrp.c')
-rw-r--r-- | epan/dissectors/packet-dvmrp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dvmrp.c b/epan/dissectors/packet-dvmrp.c index 1a276ab6b1..4ced2f88e6 100644 --- a/epan/dissectors/packet-dvmrp.c +++ b/epan/dissectors/packet-dvmrp.c @@ -64,6 +64,7 @@ static int hf_type = -1; static int hf_code_v1 = -1; static int hf_checksum = -1; static int hf_checksum_bad = -1; +static int hf_reserved = -1; static int hf_commands = -1; static int hf_command = -1; static int hf_count = -1; @@ -339,6 +340,7 @@ dissect_dvmrp_v3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int offset += 2; /* skip unused byte */ + proto_tree_add_item(parent_tree, hf_reserved, tvb, offset, 2, ENC_BIG_ENDIAN); offset += 1; /* PROBE and NEIGHBORS 2 packets have capabilities flags, unused @@ -722,6 +724,10 @@ proto_register_dvmrp(void) { "Bad Checksum", "dvmrp.checksum_bad", FT_BOOLEAN, BASE_NONE, NULL, 0x0, "Bad DVMRP Checksum", HFILL }}, + { &hf_reserved, + { "Reserved", "dvmrp.reserved", FT_UINT16, BASE_HEX, + NULL, 0, "DVMRP v3 Reserved", HFILL }}, + { &hf_commands, { "Commands", "dvmrp.commands", FT_NONE, BASE_NONE, NULL, 0, "DVMRP V1 Commands", HFILL }}, |