diff options
| author | Eric Dumazet <[email protected]> | 2015-03-12 23:44:10 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-03-13 02:58:13 +0000 |
| commit | 3f66b083a5b7f1a63540c24df3679c24f2e935a9 (patch) | |
| tree | 60b1b371c11729ed89d6f5bb3ac604eb72792892 /net/ipv4/tcp_ipv4.c | |
| parent | inet: get_openreq4() & get_openreq6() do not need listener (diff) | |
| download | kernel-3f66b083a5b7f1a63540c24df3679c24f2e935a9.tar.gz kernel-3f66b083a5b7f1a63540c24df3679c24f2e935a9.zip | |
inet: introduce ireq_family
Before inserting request socks into general hash table,
fill their socket family.
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
| -rw-r--r-- | net/ipv4/tcp_ipv4.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 70b0f701bbdb..1f514a0c5e60 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -1228,6 +1228,7 @@ static void tcp_v4_init_req(struct request_sock *req, struct sock *sk, ireq->ir_rmt_addr = ip_hdr(skb)->saddr; ireq->no_srccheck = inet_sk(sk)->transparent; ireq->opt = tcp_v4_save_options(skb); + ireq->ireq_family = AF_INET; } static struct dst_entry *tcp_v4_route_req(struct sock *sk, struct flowi *fl, |
