summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ndisc.c
diff options
context:
space:
mode:
authorJens Rosenboom2009-08-13 00:16:04 +0200
committerDavid S. Miller2009-08-14 01:26:10 +0200
commita6fa32866567351503db8a5c3466a676ba08595f (patch)
tree33cf3d010ffb87eb80d88132fa513e02b29c8db8 /net/ipv6/ndisc.c
parentbe2net:Creating/destroying queues regardless of netif_running() in suspend/re... (diff)
downloadkernel-qcow2-linux-a6fa32866567351503db8a5c3466a676ba08595f.tar.gz
kernel-qcow2-linux-a6fa32866567351503db8a5c3466a676ba08595f.tar.xz
kernel-qcow2-linux-a6fa32866567351503db8a5c3466a676ba08595f.zip
ipv6: Log the explicit address that triggered DAD failure
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>
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r--net/ipv6/ndisc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 9eb68e92cc18..1ba42bd65577 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -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;
}