]> asedeno.scripts.mit.edu Git - linux.git/commit
net: display hw address of source machine during ipv6 DAD failure
authorVishwanath Pai <vpai@akamai.com>
Mon, 30 Oct 2017 23:38:52 +0000 (19:38 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 11:53:49 +0000 (20:53 +0900)
commitda13c59b9936dfedcf9f2203bd29fbf83ad672bf
treec7cd1ad6e06b95449196f3aa3b9f58ff87dcc550
parentcdb583cfe7d79b784a74b97deb2997fccb5dcf9b
net: display hw address of source machine during ipv6 DAD failure

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 2001:db8:: on eth0!

b) When we detect DAD failure during address assignment to an interface:

IPv6: eth0: IPv6 duplicate address 2001:db8:: used by 34:ab:cd:56:11:e8
detected!

v2:
    Changed %pI6 to %pI6c in ndisc_recv_na()
    Chaged the v6 address in the commit message to 2001:db8::

Suggested-by: Igor Lubashev <ilubashe@akamai.com>
Signed-off-by: Vishwanath Pai <vpai@akamai.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/addrconf.h
net/ipv6/addrconf.c
net/ipv6/ndisc.c