diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-07-24 20:46:26 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-07-24 20:46:26 +0000 |
commit | 0e1dbea88430cd53449f6ae3b00b6ff2be58536a (patch) | |
tree | ba094673105a733a2713b628fa26e486778d8759 /packet-igmp.c | |
parent | 47f684014c15a2c37f1733531c1b0f17c4fedaf3 (diff) | |
download | wireshark-0e1dbea88430cd53449f6ae3b00b6ff2be58536a.tar.gz wireshark-0e1dbea88430cd53449f6ae3b00b6ff2be58536a.tar.bz2 wireshark-0e1dbea88430cd53449f6ae3b00b6ff2be58536a.zip |
From Markus Seehofer: check the correct byte (the second byte, not the
first byte) in a host membership query to distinguish between IGMPv1 and
IGMPv2.
svn path=/trunk/; revision=8081
Diffstat (limited to 'packet-igmp.c')
-rw-r--r-- | packet-igmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-igmp.c b/packet-igmp.c index 19f384736a..71347b49e8 100644 --- a/packet-igmp.c +++ b/packet-igmp.c @@ -1,7 +1,7 @@ /* packet-igmp.c 2001 Ronnie Sahlberg <See AUTHORS for email> * Routines for IGMP packet disassembly * - * $Id: packet-igmp.c,v 1.23 2003/07/23 19:38:52 jmayer Exp $ + * $Id: packet-igmp.c,v 1.24 2003/07/24 20:46:26 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -41,7 +41,7 @@ 0x07 20 0x08 20 0x11 8* 8* >=12 - 0x12 8* 8* + 0x12 8* 8* 0x13 x 0x16 8 0x17 8 @@ -809,7 +809,7 @@ dissect_igmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) offset = dissect_igmp_v3_query(tvb, pinfo, tree, type, offset); } else { /* v1 and v2 differs in second byte of header */ - if (tvb_get_guint8(tvb, offset)) { + if (tvb_get_guint8(tvb, offset+1)) { offset = dissect_igmp_v2(tvb, pinfo, tree, type, offset); } else { offset = dissect_igmp_v1(tvb, pinfo, tree, type, offset); |