]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Add l3mdev check to ipv6_chk_addr_and_flags
authorDavid Ahern <dsahern@gmail.com>
Tue, 13 Mar 2018 15:29:38 +0000 (08:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Mar 2018 15:28:38 +0000 (11:28 -0400)
commitb4c1ad40cb5a63afcd9ebb98af69da7d2dc5207b
treed3336bda07a6b173521549acf65d0fdfc6e9c573
parenta374de990ee67cfbab789e034cdda2b696f86d95
net/ipv6: Add l3mdev check to ipv6_chk_addr_and_flags

Lookup the L3 master device for the passed in device. Only consider
addresses on netdev's with the same master device. If the device is
not enslaved or is NULL, then the l3mdev is NULL which means only
devices not enslaved (ie, in the default domain) are considered.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c