netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yan Zheng <yanzheng@21cn.com>
To: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, David Stevens <dlstevens@us.ibm.com>
Subject: [PATCH][MCAST]IPv6: small fix for ip6_mc_msfilter(...)
Date: Mon, 31 Oct 2005 10:52:32 +0800	[thread overview]
Message-ID: <436586F0.9080101@21cn.com> (raw)

Hi.
I think ip6_mc_add_src(...) should be called when number of sources is zero and filter mode is exclude.

Regards



Signed-off-by: Yan Zheng <yanzheng@21cn.com> 

Index: net/ipv6/mcast.c
================================================================================
--- linux-2.6.14/net/ipv6/mcast.c	2005-10-30 23:09:33.000000000 +0800
+++ linux/net/ipv6/mcast.c	2005-10-31 10:37:36.000000000 +0800
@@ -545,8 +545,10 @@ int ip6_mc_msfilter(struct sock *sk, str
 			sock_kfree_s(sk, newpsl, IP6_SFLSIZE(newpsl->sl_max));
 			goto done;
 		}
-	} else
+	} else {
 		newpsl = NULL;
+		ip6_mc_add_src(idev, group, gsf->gf_fmode, 0, NULL, 0);
+	}
 	psl = pmc->sflist;
 	if (psl) {
 		(void) ip6_mc_del_src(idev, group, pmc->sfmode,

             reply	other threads:[~2005-10-31  2:52 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-31  2:52 Yan Zheng [this message]
2005-11-01 10:37 ` [PATCH][MCAST]IPv6: small fix for ip6_mc_msfilter(...) Yan Zheng
2005-11-02  5:47   ` Willy Tarreau
2005-11-02  7:10     ` David Stevens
2005-11-02  9:29       ` Willy Tarreau
2005-11-02 13:41         ` Marcelo Tosatti
2005-11-02 21:31           ` [PATCH-2.4][MCAST]IPv6: " Willy Tarreau
2005-11-02 17:42         ` [PATCH][MCAST]IPv6: " David Stevens
2005-11-02 20:59           ` Marcelo Tosatti
2005-11-03  5:02             ` Willy Tarreau
2005-11-02 21:46           ` Arnaldo Carvalho de Melo
2005-11-01 21:27 ` David Stevens
2005-11-01 23:49   ` Yan Zheng
2005-11-01 23:55     ` David Stevens
2005-11-02 21:45       ` Arnaldo Carvalho de Melo
2005-11-02 21:55     ` Arnaldo Carvalho de Melo
2005-11-02 23:28       ` Yan Zheng
2005-11-02 23:28         ` Arnaldo Carvalho de Melo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=436586F0.9080101@21cn.com \
    --to=yanzheng@21cn.com \
    --cc=dlstevens@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).