Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932481AbVKCN0b (ORCPT ); Thu, 3 Nov 2005 08:26:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751330AbVKCN0b (ORCPT ); Thu, 3 Nov 2005 08:26:31 -0500 Received: from zproxy.gmail.com ([64.233.162.200]:39208 "EHLO zproxy.gmail.com") by vger.kernel.org with ESMTP id S1751300AbVKCN0a convert rfc822-to-8bit (ORCPT ); Thu, 3 Nov 2005 08:26:30 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OOYLU7GzXwtZgA/2k9Y7DSIEWD+qRXiJ7Co/aSobnC3/xNR+G26joBI4TpPssG4BHwX/CQJCCrGkRIOphCdP5PsKO49xf+FjmxJnfNNA+s83wS1ivk2ZInmePO2lnIli5kMh7CbUMKvTHYdLJj7CfR3TYdSGH62dkxiZ5MGyJJ4= Message-ID: <7e77d27c0511030526g45d8f6e6l@mail.gmail.com> Date: Thu, 3 Nov 2005 21:26:29 +0800 From: Yan Zheng To: netdev@vger.kernel.org Subject: Re: [PATCH][MCAST]Two fix for implementation of MLDv2 . Cc: linux-kernel@vger.kernel.org, David Stevens In-Reply-To: <436878E7.3030303@21cn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <436878E7.3030303@21cn.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1584 Lines: 49 You can test change in add_grec(...) by follow codes. without the change no change to exclude report will be sent. please adjust IFINDEX and make sure initial state for FF02::2 is idle =================================================== #include #include #include #include #include #include #define IFINDEX 6 int main(int argc, char argv[]) { int sockfds[2]; struct ipv6_mreq req; struct group_filter filter; struct sockaddr_in6 *psin6; req.ipv6mr_interface = IFINDEX; inet_pton(PF_INET6, "FF02::2", &req.ipv6mr_multiaddr); sockfds[0] = socket(PF_INET6, SOCK_DGRAM, 0); sockfds[1] = socket(PF_INET6, SOCK_DGRAM, 0); filter.gf_interface = IFINDEX; filter.gf_fmode = MCAST_INCLUDE; filter.gf_numsrc = 1; psin6 = (struct sockaddr_in6 *)&filter.gf_group; psin6->sin6_family = AF_INET6; inet_pton(PF_INET6, "FF02::2", &psin6->sin6_addr); psin6 = (struct sockaddr_in6 *)&filter.gf_slist[0]; psin6->sin6_family = AF_INET6; inet_pton(PF_INET6, "2002:de12:1780::1", &psin6->sin6_addr); setsockopt(sockfds[0], SOL_IPV6, IPV6_ADD_MEMBERSHIP, &req, sizeof(req)); setsockopt(sockfds[0], SOL_IPV6, MCAST_MSFILTER, &filter, sizeof(filter)); sleep(5); setsockopt(sockfds[1], SOL_IPV6, IPV6_ADD_MEMBERSHIP, &req, sizeof(req)); pause(); return 0; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/