summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrian Swetland <swetland@google.com>2010-11-01 14:50:57 +0800
committerLily Zhang <r58066@freescale.com>2010-11-22 09:39:25 +0800
commitfd7de4624d694a57c56c995eedd7f3a8c37b1c28 (patch)
tree6255fca2e131c17f75e1e02fa3178198740c7252 /include
parentc14cdc475927e5cc07530e41948afb62a4f3ae2b (diff)
Android ipv4: socket ioctl to reset connections matching local address
Introduce a new socket ioctl, SIOCKILLADDR, that nukes all sockets bound to the same local address. This is useful in situations with dynamic IPs, to kill stuck connections. Signed-off-by: Brian Swetland <swetland@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sockios.h1
-rw-r--r--include/net/tcp.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sockios.h b/include/linux/sockios.h
index 241f179347d9..f4fa1a164c74 100644
--- a/include/linux/sockios.h
+++ b/include/linux/sockios.h
@@ -65,6 +65,7 @@
#define SIOCDIFADDR 0x8936 /* delete PA address */
#define SIOCSIFHWBROADCAST 0x8937 /* set hardware broadcast addr */
#define SIOCGIFCOUNT 0x8938 /* get number of devices */
+#define SIOCKILLADDR 0x8939 /* kill sockets with this local addr */
#define SIOCGIFBR 0x8940 /* Bridging support */
#define SIOCSIFBR 0x8941 /* Set bridging options */
diff --git a/include/net/tcp.h b/include/net/tcp.h
index a1449144848a..250698be4d99 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1433,6 +1433,8 @@ 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);
+
#ifdef CONFIG_PROC_FS
extern int tcp4_proc_init(void);
extern void tcp4_proc_exit(void);