diff options
author | Eric Dumazet <edumazet@google.com> | 2015-09-25 10:39:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-25 16:00:36 -0400 |
commit | b40cf18ef7961b6d67732e234780586590510ce1 (patch) | |
tree | 5ca84feda0d47832902152cd2f23fa87fd427ab3 /include/net/tcp.h | |
parent | 6ea29da1d04f56e167ec8cc5ed15e927997d9d67 (diff) |
tcp: constify listener socket in tcp_v[46]_init_req()
Soon, listener socket spinlock will no longer be held,
add const arguments to tcp_v[46]_init_req() to make clear these
functions can not mess socket fields.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 5cf9672c13e2..c006255a0df1 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1705,7 +1705,8 @@ struct tcp_request_sock_ops { | |||
1705 | const struct sock *sk, | 1705 | const struct sock *sk, |
1706 | const struct sk_buff *skb); | 1706 | const struct sk_buff *skb); |
1707 | #endif | 1707 | #endif |
1708 | void (*init_req)(struct request_sock *req, struct sock *sk, | 1708 | void (*init_req)(struct request_sock *req, |
1709 | const struct sock *sk_listener, | ||
1709 | struct sk_buff *skb); | 1710 | struct sk_buff *skb); |
1710 | #ifdef CONFIG_SYN_COOKIES | 1711 | #ifdef CONFIG_SYN_COOKIES |
1711 | __u32 (*cookie_init_seq)(struct sock *sk, const struct sk_buff *skb, | 1712 | __u32 (*cookie_init_seq)(struct sock *sk, const struct sk_buff *skb, |