summaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorEric Dumazet2015-09-29 16:42:50 +0200
committerDavid S. Miller2015-09-30 01:53:09 +0200
commitf964629e3338d9e5a78c9b354380d5a1e2fa4617 (patch)
treeb81d02c2c7658e48482bfd0158bd7c0aa24d2111 /include/net/tcp.h
parenttcp: cookie_init_sequence() cleanups (diff)
downloadkernel-qcow2-linux-f964629e3338d9e5a78c9b354380d5a1e2fa4617.tar.gz
kernel-qcow2-linux-f964629e3338d9e5a78c9b354380d5a1e2fa4617.tar.xz
kernel-qcow2-linux-f964629e3338d9e5a78c9b354380d5a1e2fa4617.zip
tcp: constify tcp_v{4|6}_route_req() sock argument
These functions do not change the listener socket. Goal is to make sure tcp_conn_request() is not messing with listener in a racy way. 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 5aa6672c6f5b..2c7dfe52f473 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1711,7 +1711,7 @@ struct tcp_request_sock_ops {
__u32 (*cookie_init_seq)(const struct sk_buff *skb,
__u16 *mss);
#endif
- struct dst_entry *(*route_req)(struct sock *sk, struct flowi *fl,
+ struct dst_entry *(*route_req)(const struct sock *sk, struct flowi *fl,
const struct request_sock *req,
bool *strict);
__u32 (*init_seq)(const struct sk_buff *skb);