mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
tcp: constify tcp_v{4|6}_route_req() sock argument
These functions do not change the listener socket. Goal is to make sure tcp_conn_request() is not messing with listener in a racy way. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3f684b4b1f
commit
f964629e33
3 changed files with 5 additions and 3 deletions
|
@ -689,7 +689,8 @@ static void tcp_v6_init_req(struct request_sock *req,
|
|||
}
|
||||
}
|
||||
|
||||
static struct dst_entry *tcp_v6_route_req(struct sock *sk, struct flowi *fl,
|
||||
static struct dst_entry *tcp_v6_route_req(const struct sock *sk,
|
||||
struct flowi *fl,
|
||||
const struct request_sock *req,
|
||||
bool *strict)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue