tcp/dccp: constify rtx_synack() and friends
This is done to make sure we do not change listener socket while sending SYNACK packets while socket lock is not held. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
802885fc04
commit
ea3bea3a1d
+1
-1
@@ -498,7 +498,7 @@ static struct dst_entry* dccp_v4_route_skb(struct net *net, struct sock *sk,
|
||||
return &rt->dst;
|
||||
}
|
||||
|
||||
static int dccp_v4_send_response(struct sock *sk, struct request_sock *req)
|
||||
static int dccp_v4_send_response(const struct sock *sk, struct request_sock *req)
|
||||
{
|
||||
int err = -1;
|
||||
struct sk_buff *skb;
|
||||
|
||||
+1
-1
@@ -181,7 +181,7 @@ out:
|
||||
}
|
||||
|
||||
|
||||
static int dccp_v6_send_response(struct sock *sk, struct request_sock *req)
|
||||
static int dccp_v6_send_response(const struct sock *sk, struct request_sock *req)
|
||||
{
|
||||
struct inet_request_sock *ireq = inet_rsk(req);
|
||||
struct ipv6_pinfo *np = inet6_sk(sk);
|
||||
|
||||
Reference in New Issue
Block a user