diff options
author | Dario Lombardo <lomato@gmail.com> | 2015-03-02 17:11:17 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-03-02 21:06:23 +0000 |
commit | 21a0bc7030cad991489b9c47bfc9be5f261fdf3c (patch) | |
tree | 6660ca239579d88e4584cd2b502bf1e7fc1f9786 | |
parent | 342c55b925b7607dfd355a593cf7bd4a04dd80bc (diff) |
cgmp: added reserved field
Change-Id: Iaf3c8c776507803e28b4372f7da1290a19dd5efd
Reviewed-on: https://code.wireshark.org/review/7497
Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r-- | epan/dissectors/packet-cgmp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/epan/dissectors/packet-cgmp.c b/epan/dissectors/packet-cgmp.c index b1240f4ef6..b960397944 100644 --- a/epan/dissectors/packet-cgmp.c +++ b/epan/dissectors/packet-cgmp.c @@ -37,6 +37,7 @@ void proto_reg_handoff_cgmp(void); static int proto_cgmp = -1; static int hf_cgmp_version = -1; static int hf_cgmp_type = -1; +static int hf_cgmp_reserved = -1; static int hf_cgmp_count = -1; static int hf_cgmp_gda = -1; static int hf_cgmp_usa = -1; @@ -71,7 +72,9 @@ dissect_cgmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) ENC_BIG_ENDIAN); offset += 1; - offset += 2; /* skip reserved field */ + proto_tree_add_item(cgmp_tree, hf_cgmp_reserved, tvb, offset, 2, + ENC_BIG_ENDIAN); + offset += 2; count = tvb_get_guint8(tvb, offset); proto_tree_add_uint(cgmp_tree, hf_cgmp_count, tvb, offset, 1, @@ -104,6 +107,10 @@ proto_register_cgmp(void) { "Type", "cgmp.type", FT_UINT8, BASE_DEC, VALS(type_vals), 0x0F, NULL, HFILL }}, + { &hf_cgmp_reserved, + { "Reserved", "cgmp.reserved", FT_UINT8, BASE_HEX, NULL, 0x0, + NULL, HFILL }}, + { &hf_cgmp_count, { "Count", "cgmp.count", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }}, |