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)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:56 +0000 (09:09 -0700)
commit810bf5db1e7aa71994907e71d05abc6cd6a6f482
tree33da05b442c257b7019a2d56f5bdfb6022d21588
parentd31005f0522b1d85cc96a39ea4c76e5f57399429
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