netdev
[Top] [All Lists]

[PATCH] IPv6: fix saddr checking bug in datagram_send_ctl()

To: davem@xxxxxxxxxx, Andreas Jellinghaus <aj@xxxxxxxxxxxxxxx>
Subject: [PATCH] IPv6: fix saddr checking bug in datagram_send_ctl()
From: Ville Nuorvala <vnuorval@xxxxxxxxxx>
Date: Wed, 21 Jan 2004 17:03:07 +0200 (EET)
Cc: netdev@xxxxxxxxxxx, linux-net@xxxxxxxxxxxxxxx
In-reply-to: <1074683199.1172.26.camel@simulacron>
References: <1074683199.1172.26.camel@simulacron>
Sender: netdev-bounce@xxxxxxxxxxx
Hi Dave,

I'm sorry, a bug had slipped into my link-local checking patch, which
Andreas noticed.

Here is the fix.

Thanks,
Ville

===== net/ipv6/datagram.c 1.12 vs edited =====
--- 1.12/net/ipv6/datagram.c    Tue Jan 20 07:37:47 2004
+++ edited/net/ipv6/datagram.c  Wed Jan 21 16:55:39 2004
@@ -295,7 +295,7 @@

                        addr_type = ipv6_addr_type(&src_info->ipi6_addr);

-                       if (ipv6_addr_type == IPV6_ADDR_ANY)
+                       if (addr_type == IPV6_ADDR_ANY)
                                break;

                        if (addr_type & IPV6_ADDR_LINKLOCAL) {

--
Ville Nuorvala
Research Assistant, Institute of Digital Communications,
Helsinki University of Technology
email: vnuorval@xxxxxxxxxx, phone: +358 (0)9 451 5257

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