On 10/30/17 2:29 PM, Vishwanath Pai wrote:
> This patch updates the error messages displayed in kernel log to include
> hwaddress of the source machine that caused ipv6 duplicate address
> detection failures.
> 
> Examples:
> 
> a) When we receive a NA packet from another machine advertising our
> address:
> 
> ICMPv6: NA: 34:ab:cd:56:11:e8 advertised our address 2601::2bb4 on eth0!

your example above does not agree with the format below. You have the
compressed IPv6 address, yet the format ...

> 
> b) When we detect DAD failure during address assignment to an interface:
> 
> IPv6: eth0: IPv6 duplicate address 2601::2b78 used by 34:ab:cd:56:11:e8
> detected!
> 
> Suggested-by: Igor Lubashev <iluba...@akamai.com>
> Signed-off-by: Vishwanath Pai <v...@akamai.com>
> ---


> @@ -989,8 +990,8 @@ static void ndisc_recv_na(struct sk_buff *skb)
>                */
>               if (skb->pkt_type != PACKET_LOOPBACK)
>                       ND_PRINTK(1, warn,
> -                               "NA: someone advertises our address %pI6 on 
> %s!\n",
> -                               &ifp->addr, ifp->idev->dev->name);
> +                               "NA: %pM advertised our address %pI6 on 
> %s!\n",

... is uncompressed. Please make that '%pI6c' instead of pI6 in the line
above


> +                               eth_hdr(skb)->h_source, &ifp->addr, 
> ifp->idev->dev->name);
>               in6_ifa_put(ifp);
>               return;
>       }



Reply via email to