netdev
[Top] [All Lists]

[PATCH] UDP/IPv6 multicasting

To: davem@xxxxxxxxxx, netdev@xxxxxxxxxxx
Subject: [PATCH] UDP/IPv6 multicasting
From: David Stevens <dlstevens@xxxxxxxxxx>
Date: Fri, 14 Nov 2003 16:11:50 -0700
Importance: Normal
Sender: netdev-bounce@xxxxxxxxxxx
Sensitivity:



Dave,
      Below is a patch to fix a problem reported by Brian Buesker. When
binding to
two different multicast addresses on the same UDP port, a copy sent to
either multicast
address is delivered to both.

                        +-DLS

--- linux-2.6.0-test9-bk12/net/ipv6/udp.c 2003-11-07 14:13:21.000000000 -0800
+++ linux-2.6.0-test9-bk12F1/net/ipv6/udp.c     2003-11-14 14:51:05.000000000 
-0800
@@ -551,6 +551,7 @@
                  if (!ipv6_addr_any(&np->rcv_saddr)) {
                        if (!ipv6_addr_cmp(&np->rcv_saddr, loc_addr))
                              return s;
+                       continue;
                  }
                  if(!inet6_mc_check(s, loc_addr, rmt_addr))
                        continue;

(See attached file: mcfix.patch.txt)

Attachment: mcfix.patch.txt
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>