diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/syncookies.c | 1 | ||||
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/syncookies.c b/net/ipv6/syncookies.c index 66bba6a84e47..58875ce8e178 100644 --- a/net/ipv6/syncookies.c +++ b/net/ipv6/syncookies.c | |||
@@ -197,6 +197,7 @@ struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb) | |||
197 | treq = tcp_rsk(req); | 197 | treq = tcp_rsk(req); |
198 | treq->listener = NULL; | 198 | treq->listener = NULL; |
199 | write_pnet(&ireq->ireq_net, sock_net(sk)); | 199 | write_pnet(&ireq->ireq_net, sock_net(sk)); |
200 | ireq->ireq_family = AF_INET6; | ||
200 | 201 | ||
201 | if (security_inet_conn_request(sk, skb, req)) | 202 | if (security_inet_conn_request(sk, skb, req)) |
202 | goto out_free; | 203 | goto out_free; |
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 1ccfede7d55f..c5fc6a5e4adc 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -749,6 +749,7 @@ static void tcp_v6_init_req(struct request_sock *req, struct sock *sk, | |||
749 | atomic_inc(&skb->users); | 749 | atomic_inc(&skb->users); |
750 | ireq->pktopts = skb; | 750 | ireq->pktopts = skb; |
751 | } | 751 | } |
752 | ireq->ireq_family = AF_INET6; | ||
752 | } | 753 | } |
753 | 754 | ||
754 | static struct dst_entry *tcp_v6_route_req(struct sock *sk, struct flowi *fl, | 755 | static struct dst_entry *tcp_v6_route_req(struct sock *sk, struct flowi *fl, |