summaryrefslogtreecommitdiff
path: root/drivers/net/3c523.h
diff options
context:
space:
mode:
authorMax Matveev <makc@redhat.com>2011-08-05 03:56:30 -0700
committerDavid S. Miller <davem@davemloft.net>2011-08-05 03:56:30 -0700
commitc15fea2d8ca834dae491339c47e4fb3c81428190 (patch)
treebb0e318d09366001552d13efbbe128564956adde /drivers/net/3c523.h
parent20e72a44098641f0c4de34a31287a93e006afb5b (diff)
downloadlinux-3.10-c15fea2d8ca834dae491339c47e4fb3c81428190.tar.gz
linux-3.10-c15fea2d8ca834dae491339c47e4fb3c81428190.tar.bz2
linux-3.10-c15fea2d8ca834dae491339c47e4fb3c81428190.zip
ipv6: check for IPv4 mapped addresses when connecting IPv6 sockets
When support for binding to 'mapped INADDR_ANY (::ffff.0.0.0.0)' was added in 0f8d3c7ac3693d7b6c731bf2159273a59bf70e12 the rest of the code wasn't told so now it's possible to bind IPv6 datagram socket to ::ffff.0.0.0.0, connect it to another IPv4 address and it will all work except for getsockhame() which does not return the local address as expected. To give getsockname() something to work with check for 'mapped INADDR_ANY' when connecting and update the in-core source addresses appropriately. Signed-off-by: Max Matveev <makc@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/3c523.h')
0 files changed, 0 insertions, 0 deletions