summaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorEric Dumazet2015-09-29 16:42:48 +0200
committerDavid S. Miller2015-09-30 01:53:09 +0200
commit0c27171e66d94f9121fc00e87407ca7103bb6649 (patch)
treed70a70c3c61e14a6f7649deba8f5c47628c7a649 /include/net/tcp.h
parenttcp: constify tcp_create_openreq_child() socket argument (diff)
downloadkernel-qcow2-linux-0c27171e66d94f9121fc00e87407ca7103bb6649.tar.gz
kernel-qcow2-linux-0c27171e66d94f9121fc00e87407ca7103bb6649.tar.xz
kernel-qcow2-linux-0c27171e66d94f9121fc00e87407ca7103bb6649.zip
tcp/dccp: constify syn_recv_sock() method sock argument
We'll soon no longer hold listener socket lock, these functions do not modify the socket in any 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 85995c1291d0..a1d2f5d6a430 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -454,7 +454,7 @@ struct sock *tcp_create_openreq_child(const struct sock *sk,
struct request_sock *req,
struct sk_buff *skb);
void tcp_ca_openreq_child(struct sock *sk, const struct dst_entry *dst);
-struct sock *tcp_v4_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
+struct sock *tcp_v4_syn_recv_sock(const struct sock *sk, struct sk_buff *skb,
struct request_sock *req,
struct dst_entry *dst);
int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb);