diff options
author | Neal Cardwell <ncardwell@google.com> | 2012-06-28 08:34:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-28 20:53:50 -0400 |
commit | 9247869ee661b046510c19a36cf0d91d9c2639d3 (patch) | |
tree | 4aed0fbf868883f876273d088dba63e1a4956e67 | |
parent | b26d344c6b87058ae3e8f919a18580abfc4204eb (diff) |
tcp: fix inet6_csk_route_req() for link-local addresses
Fix inet6_csk_route_req() to use as the flowi6_oif the treq->iif,
which is correctly fixed up in tcp_v6_conn_request() to handle the
case of link-local addresses. This brings it in line with the
tcp_v6_send_synack() code, which is already correctly using the
treq->iif in this way.
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv6/inet6_connection_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/inet6_connection_sock.c b/net/ipv6/inet6_connection_sock.c index e6cee5292a0b..e23d35424ca9 100644 --- a/net/ipv6/inet6_connection_sock.c +++ b/net/ipv6/inet6_connection_sock.c | |||
@@ -68,7 +68,7 @@ struct dst_entry *inet6_csk_route_req(struct sock *sk, | |||
68 | fl6.daddr = treq->rmt_addr; | 68 | fl6.daddr = treq->rmt_addr; |
69 | final_p = fl6_update_dst(&fl6, np->opt, &final); | 69 | final_p = fl6_update_dst(&fl6, np->opt, &final); |
70 | fl6.saddr = treq->loc_addr; | 70 | fl6.saddr = treq->loc_addr; |
71 | fl6.flowi6_oif = sk->sk_bound_dev_if; | 71 | fl6.flowi6_oif = treq->iif; |
72 | fl6.flowi6_mark = sk->sk_mark; | 72 | fl6.flowi6_mark = sk->sk_mark; |
73 | fl6.fl6_dport = inet_rsk(req)->rmt_port; | 73 | fl6.fl6_dport = inet_rsk(req)->rmt_port; |
74 | fl6.fl6_sport = inet_rsk(req)->loc_port; | 74 | fl6.fl6_sport = inet_rsk(req)->loc_port; |