|
@@ -477,7 +477,8 @@ out:
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-static int tcp_v6_send_synack(struct sock *sk, struct request_sock *req,
|
|
|
|
|
|
+static int tcp_v6_send_synack(struct sock *sk,
|
|
|
|
+ struct request_sock *req,
|
|
struct request_values *rvp,
|
|
struct request_values *rvp,
|
|
u16 queue_mapping)
|
|
u16 queue_mapping)
|
|
{
|
|
{
|
|
@@ -1058,6 +1059,7 @@ static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb)
|
|
struct tcp_sock *tp = tcp_sk(sk);
|
|
struct tcp_sock *tp = tcp_sk(sk);
|
|
__u32 isn = TCP_SKB_CB(skb)->when;
|
|
__u32 isn = TCP_SKB_CB(skb)->when;
|
|
struct dst_entry *dst = NULL;
|
|
struct dst_entry *dst = NULL;
|
|
|
|
+ struct flowi6 fl6;
|
|
bool want_cookie = false;
|
|
bool want_cookie = false;
|
|
|
|
|
|
if (skb->protocol == htons(ETH_P_IP))
|
|
if (skb->protocol == htons(ETH_P_IP))
|
|
@@ -1177,7 +1179,7 @@ static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb)
|
|
*/
|
|
*/
|
|
if (tmp_opt.saw_tstamp &&
|
|
if (tmp_opt.saw_tstamp &&
|
|
tcp_death_row.sysctl_tw_recycle &&
|
|
tcp_death_row.sysctl_tw_recycle &&
|
|
- (dst = inet6_csk_route_req(sk, req)) != NULL &&
|
|
|
|
|
|
+ (dst = inet6_csk_route_req(sk, &fl6, req)) != NULL &&
|
|
(peer = rt6_get_peer((struct rt6_info *)dst)) != NULL &&
|
|
(peer = rt6_get_peer((struct rt6_info *)dst)) != NULL &&
|
|
ipv6_addr_equal((struct in6_addr *)peer->daddr.addr.a6,
|
|
ipv6_addr_equal((struct in6_addr *)peer->daddr.addr.a6,
|
|
&treq->rmt_addr)) {
|
|
&treq->rmt_addr)) {
|
|
@@ -1247,6 +1249,7 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
|
|
#ifdef CONFIG_TCP_MD5SIG
|
|
#ifdef CONFIG_TCP_MD5SIG
|
|
struct tcp_md5sig_key *key;
|
|
struct tcp_md5sig_key *key;
|
|
#endif
|
|
#endif
|
|
|
|
+ struct flowi6 fl6;
|
|
|
|
|
|
if (skb->protocol == htons(ETH_P_IP)) {
|
|
if (skb->protocol == htons(ETH_P_IP)) {
|
|
/*
|
|
/*
|
|
@@ -1309,7 +1312,7 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
|
|
goto out_overflow;
|
|
goto out_overflow;
|
|
|
|
|
|
if (!dst) {
|
|
if (!dst) {
|
|
- dst = inet6_csk_route_req(sk, req);
|
|
|
|
|
|
+ dst = inet6_csk_route_req(sk, &fl6, req);
|
|
if (!dst)
|
|
if (!dst)
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|