summaryrefslogtreecommitdiffstats
path: root/net/dccp/ipv6.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-29 16:42:48 +0200
committerDavid S. Miller <davem@davemloft.net>2015-09-30 01:53:09 +0200
commit0c27171e66d94f9121fc00e87407ca7103bb6649 (patch)
treed70a70c3c61e14a6f7649deba8f5c47628c7a649 /net/dccp/ipv6.c
parenttcp: constify tcp_create_openreq_child() socket argument (diff)
downloadlinux-0c27171e66d94f9121fc00e87407ca7103bb6649.tar.xz
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/ipv6.c')
-rw-r--r--net/dccp/ipv6.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c
index 0966bc08d362..e8753aa3b7a4 100644
--- a/net/dccp/ipv6.c
+++ b/net/dccp/ipv6.c
@@ -408,13 +408,14 @@ drop:
return -1;
}
-static struct sock *dccp_v6_request_recv_sock(struct sock *sk,
+static struct sock *dccp_v6_request_recv_sock(const struct sock *sk,
struct sk_buff *skb,
struct request_sock *req,
struct dst_entry *dst)
{
struct inet_request_sock *ireq = inet_rsk(req);
- struct ipv6_pinfo *newnp, *np = inet6_sk(sk);
+ struct ipv6_pinfo *newnp;
+ const struct ipv6_pinfo *np = inet6_sk(sk);
struct inet_sock *newinet;
struct dccp6_sock *newdp6;
struct sock *newsk;