浏览代码

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>
Jens Rosenboom 16 年之前
父节点
当前提交
0522fea650
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      net/ipv6/addrconf.c

+ 2 - 2
net/ipv6/addrconf.c

@@ -1407,8 +1407,8 @@ void addrconf_dad_failure(struct inet6_ifaddr *ifp)
 	struct inet6_dev *idev = ifp->idev;
 	struct inet6_dev *idev = ifp->idev;
 
 
 	if (net_ratelimit())
 	if (net_ratelimit())
-		printk(KERN_INFO "%s: IPv6 duplicate address detected!\n",
-			ifp->idev->dev->name);
+		printk(KERN_INFO "%s: IPv6 duplicate address %pI6c detected!\n",
+			ifp->idev->dev->name, &ifp->addr);
 
 
 	if (idev->cnf.accept_dad > 1 && !idev->cnf.disable_ipv6) {
 	if (idev->cnf.accept_dad > 1 && !idev->cnf.disable_ipv6) {
 		struct in6_addr addr;
 		struct in6_addr addr;