/[linux-patches]/genpatches-2.6/trunk/2.6.14-pre/1022_3_ipv6-fix-per-socket-multicast-filtering.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14-pre/1022_3_ipv6-fix-per-socket-multicast-filtering.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 175 - (show annotations) (download)
Sat Oct 8 10:49:55 2005 UTC (13 years, 2 months ago) by dsd
File size: 1207 byte(s)
Creating 2.6.14-pre branch from 2.6.13
1 From stable-bounces@linux.kernel.org Thu Sep 15 12:46:31 2005
2 To: stable@kernel.org
3 From: David Stevens <dlstevens@us.ibm.com>
4 Date: Thu, 15 Sep 2005 13:46:06 -0600
5 Subject: [PATCH] fix IPv6 per-socket multicast filtering in exact-match case
6
7 per-socket multicast filters were not being applied to all sockets
8 in the case of an exact-match bound address, due to an over-exuberant
9 "return" in the look-up code. Fix below. IPv4 does not have this problem.
10
11 Thanks to Hoerdt Mickael for reporting the bug.
12
13 Signed-off-by: David L Stevens <dlstevens@us.ibm.com>
14 Signed-off-by: Chris Wright <chrisw@osdl.org>
15 ---
16 net/ipv6/udp.c | 5 ++---
17 1 files changed, 2 insertions(+), 3 deletions(-)
18
19 Index: linux-2.6.13.y/net/ipv6/udp.c
20 ===================================================================
21 --- linux-2.6.13.y.orig/net/ipv6/udp.c
22 +++ linux-2.6.13.y/net/ipv6/udp.c
23 @@ -404,9 +404,8 @@ static struct sock *udp_v6_mcast_next(st
24 continue;
25
26 if (!ipv6_addr_any(&np->rcv_saddr)) {
27 - if (ipv6_addr_equal(&np->rcv_saddr, loc_addr))
28 - return s;
29 - continue;
30 + if (!ipv6_addr_equal(&np->rcv_saddr, loc_addr))
31 + continue;
32 }
33 if(!inet6_mc_check(s, loc_addr, rmt_addr))
34 continue;

  ViewVC Help
Powered by ViewVC 1.1.20