diff options
author | Eric Dumazet <edumazet@google.com> | 2015-09-29 10:42:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-29 19:53:09 -0400 |
commit | 0c27171e66d94f9121fc00e87407ca7103bb6649 (patch) | |
tree | d70a70c3c61e14a6f7649deba8f5c47628c7a649 /net/ipv4/tcp_ipv4.c | |
parent | c28c6f045945f53e842467bf0e86c5fac051643d (diff) |
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 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 67c0dc8bddbf..ee0239e190cf 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1242,7 +1242,7 @@ EXPORT_SYMBOL(tcp_v4_conn_request); | |||
1242 | * The three way handshake has completed - we got a valid synack - | 1242 | * The three way handshake has completed - we got a valid synack - |
1243 | * now create the new socket. | 1243 | * now create the new socket. |
1244 | */ | 1244 | */ |
1245 | struct sock *tcp_v4_syn_recv_sock(struct sock *sk, struct sk_buff *skb, | 1245 | struct sock *tcp_v4_syn_recv_sock(const struct sock *sk, struct sk_buff *skb, |
1246 | struct request_sock *req, | 1246 | struct request_sock *req, |
1247 | struct dst_entry *dst) | 1247 | struct dst_entry *dst) |
1248 | { | 1248 | { |