net: Support nuking IPv6 sockets as well as IPv4.
authorLorenzo Colitti <lorenzo@google.com>
Fri, 11 Mar 2011 04:24:12 +0000 (20:24 -0800)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:07:25 +0000 (12:07 -0800)
commit545d2b8b75b182f32805c17c5a966269be398a93
treea9cb75b1ae5e8ccc062976b78994660be5a6f107
parent090b4f33c559b0ff570f9294d21fef178d43d99c
net: Support nuking IPv6 sockets as well as IPv4.

On Linux, when an interface goes down all its IPv6
addresses are deleted, so relying on knowing the previous
IPv6 addresses on the interface is brittle. Instead,
support nuking all sockets that are bound to IP addresses
that are not configured and up on the system. This
behaviour is triggered by specifying the unspecified
address (:: or 0.0.0.0). If an IP address is specified, the
behaviour is unchanged, except the ioctl now supports IPv6
as well as IPv4.

Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
include/net/tcp.h
net/ipv4/devinet.c
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c
net/ipv6/af_inet6.c