On 12/1/16 2:28 PM, Hannes Frederic Sowa wrote:
Reviewed-by: Hannes Frederic Sowa <han...@stressinduktion.org>


Thanks - I'll add that.
Also got a warning from the kbuild test robot for route.c which I'll fix.


Thanks!
@@ -794,6 +808,17 @@ static void ndisc_recv_ns(struct sk_buff *skb)
  have_ifp:
                if (ifp->flags & (IFA_F_TENTATIVE|IFA_F_OPTIMISTIC)) {
                        if (dad) {
+                               if (nonce != 0 && ifp->dad_nonce == nonce) {
+                                       u8 *np = (u8 *)&nonce;
+                                       /* Matching nonce if looped back */
+                                       ND_PRINTK(2, notice,
+                                                 "%s: IPv6 DAD loopback for address 
%pI6c nonce %02x:%02x:%02x:%02x:%02x:%02x ignored\n",
+                                                 ifp->idev->dev->name,
+                                                 &ifp->addr,
+                                                 np[0], np[1], np[2], np[3],
+                                                 np[4], np[5]);
+                                       goto out;
+                               }
                                /*
                                 * We are colliding with another node
                                 * who is doing DAD

I think it could be a "%pM" because it looks like a MAC address, but
better leave it like that. :)

It is 6 bytes, but it isn't a mac address so I'll leave it.

Thanks,
  Erik

Reply via email to