diff options
author | Eric Dumazet <edumazet@google.com> | 2015-09-29 07:42:48 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-29 16:53:09 -0700 |
commit | 0c27171e66d94f9121fc00e87407ca7103bb6649 (patch) | |
tree | d70a70c3c61e14a6f7649deba8f5c47628c7a649 /net/dccp/ipv4.c | |
parent | c28c6f045945f53e842467bf0e86c5fac051643d (diff) | |
download | linux-0c27171e66d94f9121fc00e87407ca7103bb6649.tar.gz linux-0c27171e66d94f9121fc00e87407ca7103bb6649.tar.bz2 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 'net/dccp/ipv4.c')
-rw-r--r-- | net/dccp/ipv4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index 00a14fa4270a..5b7818c63cec 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c @@ -390,7 +390,8 @@ static inline u64 dccp_v4_init_sequence(const struct sk_buff *skb) * * This is the equivalent of TCP's tcp_v4_syn_recv_sock */ -struct sock *dccp_v4_request_recv_sock(struct sock *sk, struct sk_buff *skb, +struct sock *dccp_v4_request_recv_sock(const struct sock *sk, + struct sk_buff *skb, struct request_sock *req, struct dst_entry *dst) { |