]> 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)
commit4fca9820076dcc3d644f6c127e6bc5254157fea4
treed3336bda07a6b173521549acf65d0fdfc6e9c573
parentc6a5e66f64c8f76d527904d8ee806b14e5b83a46
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