From: Ted Phelps <phelps@dstc.edu.au>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.5.64 multicast: find interface correctly
Date: Sat, 08 Mar 2003 23:49:51 +0000 [thread overview]
Message-ID: <200303082349.h28Nnpc09298@tereshkova.dstc.edu.au> (raw)
Joining a multicast group (IP_ADD_MEMBERSHIP) with the imr_interface
set to INADDR_ANY binds to the loopback interface. This differs from
the 2.4 behavior and appears to be because ip_mc_find_dev() calls
ip_route_output_key() with the interface address (0.0.0.0) rather than
the multicast address (which 2.4 kernels use). The following patch
reverts to the linux-2.4 behavior.
Thanks,
-Ted
---8<---
--- linux-2.5.63/net/ipv4/igmp.c 2003-02-26 22:28:36.000000000 +0000
+++ linux-2.5.64/net/ipv4/igmp.c 2003-03-08 22:52:38.000000000 +0000
@@ -618,6 +618,7 @@
__dev_put(dev);
}
+ fl.nl_u.ip4_u.daddr = imr->imr_multiaddr.s_addr;
if (!dev && !ip_route_output_key(&rt, &fl)) {
dev = rt->u.dst.dev;
ip_rt_put(rt);
next reply other threads:[~2003-03-08 23:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-08 23:49 Ted Phelps [this message]
2003-03-09 0:02 ` David S. Miller
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=200303082349.h28Nnpc09298@tereshkova.dstc.edu.au \
--to=phelps@dstc.edu.au \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®