netdev
[Top] [All Lists]

udpv6 multicast delivery on linux24 and linux22

To: netdev@xxxxxxxxxxx
Subject: udpv6 multicast delivery on linux24 and linux22
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxxxxx>
Date: Fri, 01 Dec 2000 19:26:36 +0900
Sender: owner-netdev@xxxxxxxxxxx
Is this fix (for udpv6_mcast_deliver()) correct?

I guess you're confusing similar code in ipv4/udp.c;
order of arguments for udp_XX_mcast_next() is different between
ipv6 and ipv4.

Index: udp.c
===================================================================
RCS file: /cvsroot/usagi/kernel/linux24/net/ipv6/udp.c,v
retrieving revision 1.1.1.5
diff -u -r1.1.1.5 udp.c
--- linux24/net/ipv6/udp.c      2000/11/01 04:31:45     1.1.1.5
+++ linux24/net/ipv6/udp.c      2000/12/01 10:17:29
@@ -577,8 +577,8 @@
 
        buff = NULL;
        sk2 = sk;
-       while((sk2 = udp_v6_mcast_next(sk2->next, uh->dest, saddr,
-                                                 uh->source, daddr, dif))) {
+       while((sk2 = udp_v6_mcast_next(sk2->next, uh->dest, daddr,
+                                                 uh->source, saddr, dif))) {
                if (!buff) {
                        buff = skb_clone(skb, GFP_ATOMIC);
                        if (!buff)

-- 
Hideaki YOSHIFUJI @ USAGI Project  <yoshfuji@xxxxxxxxxxxxxx>
PGP5i FP: F731 6599 5EB2 BBA7 1515  1323 1806 A96F 5700 6B25 

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