diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-18 14:05:38 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-18 22:00:35 -0400 |
commit | 08d2cc3b26554cae21f279b520ae5c2a3b2be421 (patch) | |
tree | 6ef039c1602a24c64549663d734d10d2a382f08e /include/net/request_sock.h | |
parent | b4d6444ea3b50bf368639432657bcf2b4e5e1062 (diff) | |
download | talos-obmc-linux-08d2cc3b26554cae21f279b520ae5c2a3b2be421.tar.gz talos-obmc-linux-08d2cc3b26554cae21f279b520ae5c2a3b2be421.zip |
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>
Diffstat (limited to 'include/net/request_sock.h')
-rw-r--r-- | include/net/request_sock.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/request_sock.h b/include/net/request_sock.h index 3fa4f824900a..e7ef86340514 100644 --- a/include/net/request_sock.h +++ b/include/net/request_sock.h @@ -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 */ |