Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6fa3286 authored by Jens Rosenboom's avatar Jens Rosenboom Committed by David S. Miller
Browse files

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: default avatarJens Rosenboom <jens@mcbone.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9b0365f1
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -955,8 +955,8 @@ static void ndisc_recv_na(struct sk_buff *skb)
		 */
		 */
		if (skb->pkt_type != PACKET_LOOPBACK)
		if (skb->pkt_type != PACKET_LOOPBACK)
			ND_PRINTK1(KERN_WARNING
			ND_PRINTK1(KERN_WARNING
			   "ICMPv6 NA: someone advertises our address on %s!\n",
			   "ICMPv6 NA: someone advertises our address %pI6 on %s!\n",
			   ifp->idev->dev->name);
			   &ifp->addr, ifp->idev->dev->name);
		in6_ifa_put(ifp);
		in6_ifa_put(ifp);
		return;
		return;
	}
	}