ipv6: Log the explicit address that triggered DAD failure
authorJens Rosenboom <jens@mcbone.net>
Wed, 12 Aug 2009 22:16:04 +0000 (22:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Aug 2009 23:26:10 +0000 (16:26 -0700)
If an interface has multiple addresses, the current message for DAD
failure isn't really helpful, so this patch adds the address itself to
the printk.

Signed-off-by: Jens Rosenboom <jens@mcbone.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ndisc.c

index 9eb68e92cc18108e762f24cc7f12307018f477cc..1ba42bd6557797a4ae2bb1b78cd8db33e229f989 100644 (file)
@@ -955,8 +955,8 @@ static void ndisc_recv_na(struct sk_buff *skb)
                 */
                if (skb->pkt_type != PACKET_LOOPBACK)
                        ND_PRINTK1(KERN_WARNING
-                          "ICMPv6 NA: someone advertises our address on %s!\n",
-                          ifp->idev->dev->name);
+                          "ICMPv6 NA: someone advertises our address %pI6 on %s!\n",
+                          &ifp->addr, ifp->idev->dev->name);
                in6_ifa_put(ifp);
                return;
        }