diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2009-08-23 17:18:29 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2009-08-23 17:18:29 +0000 |
commit | 1711f5899b56e45a1b493ef877e193d5f6f10f38 (patch) | |
tree | f508969b66759022c480477c63873fc8a8c38471 /epan/dissectors/packet-icmpv6.c | |
parent | db09d3f88cb463f15a48ce0d464cedecb3139bff (diff) |
From Ivan Sy:
Per RFC 3810 - Multicast Listener Discovery Version 2 (MLDv2) for IPv6,
Add Number of Sources. Also to show Record Type's numeric value and not
just its equivalent.
Cleaned up presentation and included record number as well.
svn path=/trunk/; revision=29528
Diffstat (limited to 'epan/dissectors/packet-icmpv6.c')
-rw-r--r-- | epan/dissectors/packet-icmpv6.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-icmpv6.c b/epan/dissectors/packet-icmpv6.c index 94d26b0c85..9a6af0b749 100644 --- a/epan/dissectors/packet-icmpv6.c +++ b/epan/dissectors/packet-icmpv6.c @@ -1469,9 +1469,10 @@ dissect_mldrv2( tvbuff_t *tvb, guint32 offset, guint16 count, proto_tree *tree ) ); sub_tree = proto_item_add_subtree(tf, ett_multicastRR); - proto_tree_add_text( sub_tree, tvb, offset, 1, "Mode: %s", - val_to_str(recordType, mldrv2ModesNames,"Unknown mode") ); + proto_tree_add_text( sub_tree, tvb, offset, 1, "Mode: %s (%u)", + val_to_str(recordType, mldrv2ModesNames,"Unknown mode"), recordType ); proto_tree_add_text( sub_tree, tvb, offset+1, 1, "Aux data len: %u", auxDataLen * 4); + proto_tree_add_text( sub_tree, tvb, offset+2, 2, "Number of Sources: %u", sourceNb); proto_tree_add_text( sub_tree, tvb, localOffset, 16, "Multicast Address: %s", ip6_to_str(&addr) ); localOffset += 16; @@ -1838,6 +1839,7 @@ dissect_icmpv6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint16 nbRecords; nbRecords = tvb_get_ntohs( tvb, offset+4+2 ); + proto_tree_add_text( icmp6_tree, tvb, offset+4+2, 2, "Number of records: %u", nbRecords ); dissect_mldrv2( tvb, offset+4+2+2, nbRecords, icmp6_tree ); break; } |