From owner-freebsd-net Fri Sep 21 2:25:14 2001 Delivered-To: freebsd-net@freebsd.org Received: from web11207.mail.yahoo.com (web11207.mail.yahoo.com [216.136.131.189]) by hub.freebsd.org (Postfix) with SMTP id C9A7937B410 for ; Fri, 21 Sep 2001 02:25:10 -0700 (PDT) Message-ID: <20010921092510.54909.qmail@web11207.mail.yahoo.com> Received: from [164.164.56.2] by web11207.mail.yahoo.com via HTTP; Fri, 21 Sep 2001 02:25:10 PDT Date: Fri, 21 Sep 2001 02:25:10 -0700 (PDT) From: deepika kakrania Subject: Re: IP multicasting... To: freebsd-net@FreeBSD.ORG In-Reply-To: <000e01c141e7$e812edd0$d93483d1@inktomi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, > > It's this line: > > if (igmp->igmp_group.s_addr != 0 && > !IN_MULTICAST(ntohl(igmp->igmp_group.s_addr))) { > ++igmpstat.igps_rcv_badqueries; > m_freem(m); > return; > } > > This test gets executed when it's a v2 query (mtu != > 0). The test stops > further processing if the group address is NOT > "0.0.0.0" or NOT a valid > multicast address. > I understand that above code gets excuted only if query is Version 2 type. But above test is only for Group-Specific query where igmp_group.s_addr != 0(it ^^^^^^^^^^^^^^ contains the group address being reported to). In this case we need to check whether given address is a valid multicast addredd is or not. But where is the validity check being done when query is Version 2 General query in which case igmp_group.s_addr SHOULD BE Zero and ip_dst.s_addr SHOULD be igmp_all_hosts_group. i.e., we need a validity check something like if (igmp->igmp_group.s_addr == 0 && ip->ip_dst.s_addr != igmp_all_hosts_group) { ++igmpstat.igps_rcv_badqueries; m_freem(m); return; } Don't we need this for V2 GENERAL query? Regards, Deepika __________________________________________________ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message