Skip to content
Snippets Groups Projects
Commit 0522fea6 authored by Jens Rosenboom's avatar Jens Rosenboom Committed by David S. Miller
Browse files

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: default avatarJens Rosenboom <me@jayr.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3264690b
No related merge requests found
...@@ -1407,8 +1407,8 @@ void addrconf_dad_failure(struct inet6_ifaddr *ifp) ...@@ -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", printk(KERN_INFO "%s: IPv6 duplicate address %pI6c detected!\n",
ifp->idev->dev->name); 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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment