mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 21:19:04 -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:
parent
b4d6444ea3
commit
08d2cc3b26
5 changed files with 15 additions and 10 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue