ipv6: Consider sk_bound_dev_if when binding a socket to a v4 mapped address
authorDavid Ahern <dsahern@gmail.com>
Sat, 5 Jan 2019 00:58:15 +0000 (16:58 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Jan 2019 08:37:00 +0000 (09:37 +0100)
commita2fc92be9f39dea7cff71a6e8b076dc3e24a5c1a
tree1540e1eb55fa534f8aba855edd851f31c9a2a399
parent3b68e5cf57f08ad1a9dd7f8ca48ae1326ac98824
ipv6: Consider sk_bound_dev_if when binding a socket to a v4 mapped address

[ Upstream commit ec90ad334986fa5856d11dd272f7f22fa86c55c4 ]

Similar to c5ee066333eb ("ipv6: Consider sk_bound_dev_if when binding a
socket to an address"), binding a socket to v4 mapped addresses needs to
consider if the socket is bound to a device.

This problem also exists from the beginning of git history.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/af_inet6.c