mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 02:12:00 -04:00
inet: request sock should init IPv6/IPv4 addresses
In order to be able to use sk_ehashfn() for request socks, we need to initialize their IPv6/IPv4 addresses. 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
b4d6444ea3
commit
08d2cc3b26
@@ -91,6 +91,11 @@ static inline struct request_sock *inet_reqsk(struct sock *sk)
|
||||
return (struct request_sock *)sk;
|
||||
}
|
||||
|
||||
static inline struct sock *req_to_sk(struct request_sock *req)
|
||||
{
|
||||
return (struct sock *)req;
|
||||
}
|
||||
|
||||
static inline void reqsk_free(struct request_sock *req)
|
||||
{
|
||||
/* temporary debugging */
|
||||
|
||||
Reference in New Issue
Block a user