summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-03-12 23:44:08 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-03-13 02:58:13 (GMT)
commit41b822c59e21414d829bcfd00df0c8f7f13b1b95 (patch)
tree68dcc05d4673f0e196dc772ad063f93b008bf25d /include
parent0159dfd3d7dff2da646f53039d29319b830207be (diff)
downloadlinux-41b822c59e21414d829bcfd00df0c8f7f13b1b95.tar.xz
inet: prepare sock_edemux() & sock_gen_put() for new SYN_RECV state
sock_edemux() & sock_gen_put() should be ready to cope with request socks. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/request_sock.h5
-rw-r--r--include/net/sock.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/include/net/request_sock.h b/include/net/request_sock.h
index e255ecf..3275cf3 100644
--- a/include/net/request_sock.h
+++ b/include/net/request_sock.h
@@ -77,6 +77,11 @@ static inline struct request_sock *reqsk_alloc(const struct request_sock_ops *op
return req;
}
+static inline struct request_sock *inet_reqsk(struct sock *sk)
+{
+ return (struct request_sock *)sk;
+}
+
static inline void __reqsk_free(struct request_sock *req)
{
kmem_cache_free(req->rsk_ops->slab, req);
diff --git a/include/net/sock.h b/include/net/sock.h
index 9411c34..f10832c 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -1625,7 +1625,7 @@ static inline void sock_put(struct sock *sk)
sk_free(sk);
}
/* Generic version of sock_put(), dealing with all sockets
- * (TCP_TIMEWAIT, ESTABLISHED...)
+ * (TCP_TIMEWAIT, TCP_NEW_SYN_RECV, ESTABLISHED...)
*/
void sock_gen_put(struct sock *sk);