diff options
| author | Eric Dumazet <[email protected]> | 2015-09-25 14:39:23 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-09-25 20:00:39 +0000 |
| commit | ea3bea3a1d38aab1542176b2ff11a99ce3db9656 (patch) | |
| tree | b7677994bf337d8295284c496def5f99066f13a2 /net/ipv4/tcp_output.c | |
| parent | dccp: constify dccp_make_response() socket argument (diff) | |
| download | kernel-ea3bea3a1d38aab1542176b2ff11a99ce3db9656.tar.gz kernel-ea3bea3a1d38aab1542176b2ff11a99ce3db9656.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
| -rw-r--r-- | net/ipv4/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 9eb67a8933f1..53ce6cf55598 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -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; |
