diff options
author | Eric Dumazet <edumazet@google.com> | 2015-09-25 17:39:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-25 23:00:39 +0300 |
commit | 1b70e977cef6ce7e7411c9bbec21f9adc8e29097 (patch) | |
tree | bd48e072bacebb47bc6cd4ebb3483e9bd9da21b0 /net/ipv4/inet_connection_sock.c | |
parent | ea3bea3a1d38aab1542176b2ff11a99ce3db9656 (diff) | |
download | linux-1b70e977cef6ce7e7411c9bbec21f9adc8e29097.tar.xz |
inet: constify inet_rtx_syn_ack() sock argument
SYNACK packets are sent on behalf on unlocked listeners
or fastopen sockets. Mark socket as const to catch future changes
that might break the assumption.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/inet_connection_sock.c')
-rw-r--r-- | net/ipv4/inet_connection_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index ad087c14f020..bac205136e1c 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c @@ -563,7 +563,7 @@ static inline void syn_ack_recalc(struct request_sock *req, const int thresh, req->num_timeout >= rskq_defer_accept - 1; } -int inet_rtx_syn_ack(struct sock *parent, struct request_sock *req) +int inet_rtx_syn_ack(const struct sock *parent, struct request_sock *req) { int err = req->rsk_ops->rtx_syn_ack(parent, req); |