forked from osmocom/wireshark
[r,i]gmp: added reserved field
Change-Id: I628b1711e683d57ab5dcbf7ad615b1740399b65f Reviewed-on: https://code.wireshark.org/review/7482 Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
e4018f22c0
commit
52b4c61001
|
@ -120,6 +120,7 @@ void proto_reg_handoff_igmp(void);
|
|||
|
||||
static int proto_igmp = -1;
|
||||
static int hf_type = -1;
|
||||
static int hf_reserved = -1;
|
||||
static int hf_version = -1;
|
||||
static int hf_group_type = -1;
|
||||
static int hf_reply_code = -1;
|
||||
|
@ -696,6 +697,7 @@ dissect_igmp_v1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void
|
|||
tree = dissect_igmp_common(tvb, pinfo, parent_tree, &offset, &type, 1);
|
||||
|
||||
/* skip unused byte */
|
||||
proto_tree_add_item(tree, hf_reserved, tvb, offset, 1, ENC_NA);
|
||||
offset += 1;
|
||||
|
||||
/* checksum */
|
||||
|
@ -931,6 +933,10 @@ proto_register_igmp(void)
|
|||
{ "Type", "igmp.type", FT_UINT8, BASE_HEX,
|
||||
VALS(commands), 0, "IGMP Packet Type", HFILL }},
|
||||
|
||||
{ &hf_reserved,
|
||||
{ "Reserved", "igmp.reserved", FT_UINT8, BASE_HEX,
|
||||
NULL, 0, "IGMP Reserved", HFILL }},
|
||||
|
||||
{ &hf_version,
|
||||
{ "IGMP Version", "igmp.version", FT_UINT8, BASE_DEC,
|
||||
NULL, 0, NULL, HFILL }},
|
||||
|
|
|
@ -37,6 +37,7 @@ void proto_reg_handoff_rgmp(void);
|
|||
|
||||
static int proto_rgmp = -1;
|
||||
static int hf_type = -1;
|
||||
static int hf_reserved = -1;
|
||||
static int hf_checksum = -1;
|
||||
static int hf_checksum_bad = -1;
|
||||
static int hf_maddr = -1;
|
||||
|
@ -80,7 +81,7 @@ dissect_rgmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
|
|||
offset += 1;
|
||||
|
||||
/* reserved */
|
||||
|
||||
proto_tree_add_item(tree, hf_reserved, tvb, offset, 1, ENC_NA);
|
||||
offset += 1;
|
||||
|
||||
igmp_checksum(tree, tvb, hf_checksum, hf_checksum_bad, pinfo, 0);
|
||||
|
@ -102,6 +103,11 @@ proto_register_rgmp(void)
|
|||
VALS(rgmp_types), 0, "RGMP Packet Type", HFILL }
|
||||
},
|
||||
|
||||
{ &hf_reserved,
|
||||
{ "Reserved", "rgmp.reserved", FT_UINT8, BASE_HEX,
|
||||
NULL, 0, "RGMP Reserved", HFILL }
|
||||
},
|
||||
|
||||
{ &hf_checksum,
|
||||
{ "Checksum", "rgmp.checksum", FT_UINT16, BASE_HEX,
|
||||
NULL, 0, NULL, HFILL }
|
||||
|
|
Loading…
Reference in New Issue