OSDN Git Service

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)
commit1893ff20275b9b9be4892b5b5785788ce45abdea
treed3336bda07a6b173521549acf65d0fdfc6e9c573
parent232378e8db4780bc7145d7a0ee47f5f80a41ad6b
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