aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJens Rosenboom <me@jayr.de>2009-09-17 13:24:24 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-17 13:24:24 -0400
commit0522fea6505f7b03a82787acdc6ad3066d9b4de3 (patch)
treefce2b1147c2b3c1d3b11c6070575c30aafd40287 /net
parent3264690b04ce4edc517fa5d31fa72496f71a7321 (diff)
ipv6: Log the affected address when DAD failure occurs
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 <me@jayr.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/addrconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index f216a41ceb22..55f486d89c88 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -1407,8 +1407,8 @@ void addrconf_dad_failure(struct inet6_ifaddr *ifp)
1407 struct inet6_dev *idev = ifp->idev; 1407 struct inet6_dev *idev = ifp->idev;
1408 1408
1409 if (net_ratelimit()) 1409 if (net_ratelimit())
1410 printk(KERN_INFO "%s: IPv6 duplicate address detected!\n", 1410 printk(KERN_INFO "%s: IPv6 duplicate address %pI6c detected!\n",
1411 ifp->idev->dev->name); 1411 ifp->idev->dev->name, &ifp->addr);
1412 1412
1413 if (idev->cnf.accept_dad > 1 && !idev->cnf.disable_ipv6) { 1413 if (idev->cnf.accept_dad > 1 && !idev->cnf.disable_ipv6) {
1414 struct in6_addr addr; 1414 struct in6_addr addr;