Skip to content

Commit 0522fea

Browse files
osfricklerdavem330
authored andcommitted
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>
1 parent 3264690 commit 0522fea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/ipv6/addrconf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,8 +1407,8 @@ void addrconf_dad_failure(struct inet6_ifaddr *ifp)
14071407
struct inet6_dev *idev = ifp->idev;
14081408

14091409
if (net_ratelimit())
1410-
printk(KERN_INFO "%s: IPv6 duplicate address detected!\n",
1411-
ifp->idev->dev->name);
1410+
printk(KERN_INFO "%s: IPv6 duplicate address %pI6c detected!\n",
1411+
ifp->idev->dev->name, &ifp->addr);
14121412

14131413
if (idev->cnf.accept_dad > 1 && !idev->cnf.disable_ipv6) {
14141414
struct in6_addr addr;

0 commit comments

Comments
 (0)