From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yan Zheng Subject: Re: [PATCH][MCAST]IPv6: Check packet size when process Multicast Address and Source Specific Query Date: Tue, 1 Nov 2005 12:20:17 +0800 Message-ID: <7e77d27c0510312020i435a80v@mail.gmail.com> References: <4365A995.3050404@21cn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Cc: Yan Zheng , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Return-path: To: David Stevens In-Reply-To: Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org > I think this should be modelled after the equivalent code in IGMPv3. > See igmp_heard_query() in net/ipv4/igmp.c. For ease of maintenance, > the code should be structured exactly the same way, except for > necessary differences, of course. > > I haven't seen enough context yet, but I think you need to check > for the query header itself, too (as done in IGMPv3). > > I'm reviewing your other patches as well. > > +-DLS Yes . It's better to drop invalid query earlier.