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
@@ -3502,7 +3502,7 @@ void tcp_send_probe0(struct sock *sk)
|
||||
TCP_RTO_MAX);
|
||||
}
|
||||
|
||||
int tcp_rtx_synack(struct sock *sk, struct request_sock *req)
|
||||
int tcp_rtx_synack(const struct sock *sk, struct request_sock *req)
|
||||
{
|
||||
const struct tcp_request_sock_ops *af_ops = tcp_rsk(req)->af_specific;
|
||||
struct flowi fl;
|
||||
|
Reference in New Issue
Block a user