netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Wesley W. Terpstra" <terpstra@gkec.tu-darmstadt.de>
To: "YOSHIFUJI Hideaki / 吉藤英明" <yoshfuji@linux-ipv6.org>
Cc: linux-kernel@vger.kernel.org, netdev@oss.sgi.com, davem@redhat.com
Subject: Re: Broken? 2.6.6 + IP_ADD_SOURCE_MEMBERSHIP + SO_REUSEADDR
Date: Fri, 4 Jun 2004 23:29:16 +0200	[thread overview]
Message-ID: <20040604212916.GA6683@muffin> (raw)
In-Reply-To: <20040605.015544.102223977.yoshfuji@linux-ipv6.org>

On Sat, Jun 05, 2004 at 01:55:44AM +0900, YOSHIFUJI Hideaki / 吉藤英明 wrote:
> In article <20040604155423.GA5656@muffin> (at Fri, 4 Jun 2004 17:54:23 +0200), "Wesley W. Terpstra" <terpstra@gkec.tu-darmstadt.de> says:
> > If I launch the same program twice with different senders, the first program
> > ceases to receive multicast packets. (Neither from its own sender, nor the
> > second program's sender) The second program receives packets from its
> > designated sender only (as expected).
> >
> > If both programs specify the same sender, then both programs receive the
> > message (as expected).
> 
> Thanks for the report.
> The following patch should fix the issue. Please try.
> Thanks again.
> 
> ===== net/ipv4/udp.c 1.60 vs edited =====
> --- 1.60/net/ipv4/udp.c	2004-05-31 03:57:26 +09:00
> +++ edited/net/ipv4/udp.c	2004-06-05 01:47:07 +09:00
> @@ -294,7 +294,7 @@
>  		    ipv6_only_sock(s)					||
>  		    (s->sk_bound_dev_if && s->sk_bound_dev_if != dif))
>  			continue;
> -		if (!ip_mc_sf_allow(sk, loc_addr, rmt_addr, dif))
> +		if (!ip_mc_sf_allow(s, loc_addr, rmt_addr, dif))
>  			continue;
>  		goto found;
>    	}

That works.
I have confirmed that multiple senders for multiple processes is fixed.

I am amazed you fixed it so fast!
Will this make it into 2.6.7?

-- 
Wesley W. Terpstra

  parent reply	other threads:[~2004-06-04 21:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040604155423.GA5656@muffin>
2004-06-04 16:55 ` Broken? 2.6.6 + IP_ADD_SOURCE_MEMBERSHIP + SO_REUSEADDR YOSHIFUJI Hideaki / 吉藤英明
2004-06-04 17:14   ` YOSHIFUJI Hideaki / 吉藤英明
2004-06-04 21:00     ` David S. Miller
2004-06-04 21:29   ` Wesley W. Terpstra [this message]
2004-06-04 21:29     ` David S. Miller
2004-06-04 15:54 Wesley W. Terpstra

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=20040604212916.GA6683@muffin \
    --to=terpstra@gkec.tu-darmstadt.de \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@oss.sgi.com \
    --cc=yoshfuji@linux-ipv6.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).