diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2011-03-10 20:24:12 -0800 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2011-03-11 16:40:27 -0800 |
commit | a0b2620b8eb2026e4e400f8bffda4e95f15f4e07 (patch) | |
tree | dc2140d25a8e69c2e2b3b3ef0bd3281f95889910 /include/net | |
parent | 5c58e03b81e1ac1231f1ae68e4611c31f428f2f9 (diff) |
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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 22c912c5dde6..0b612e7dba28 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -1403,7 +1403,7 @@ extern struct sk_buff **tcp4_gro_receive(struct sk_buff **head, extern int tcp_gro_complete(struct sk_buff *skb); extern int tcp4_gro_complete(struct sk_buff *skb); -extern void tcp_v4_nuke_addr(__u32 saddr); +extern int tcp_nuke_addr(struct net *net, struct sockaddr *addr); #ifdef CONFIG_PROC_FS extern int tcp4_proc_init(void); |