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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Jan 2019 01:18:58 +0000 (17:18 -0800)
commitec90ad334986fa5856d11dd272f7f22fa86c55c4
treed0dd9fdcda98b593123ddc60dc72855835adfc4b
parentae84e4a8eb6f0d7f3b902ce238f285e98cf2ac12
ipv6: Consider sk_bound_dev_if when binding a socket to a v4 mapped address

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>
net/ipv6/af_inet6.c