Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276221
b: refs/heads/master
c: 4d0fe50
h: refs/heads/master
i:
  276219: c19678e
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 23, 2011
1 parent f629dd0 commit 8e8eeef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15ac2b08a2fd0f4aacbe8ae39788252fea6fbe63
refs/heads/master: 4d0fe50c75a547088e4304e5eb5f521514dfae46
13 changes: 7 additions & 6 deletions trunk/net/ipv6/tcp_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,13 @@ static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb)
if (!want_cookie || tmp_opt.tstamp_ok)
TCP_ECN_create_request(req, tcp_hdr(skb));

treq->iif = sk->sk_bound_dev_if;

/* So that link locals have meaning */
if (!sk->sk_bound_dev_if &&
ipv6_addr_type(&treq->rmt_addr) & IPV6_ADDR_LINKLOCAL)
treq->iif = inet6_iif(skb);

if (!isn) {
struct inet_peer *peer = NULL;

Expand All @@ -1264,12 +1271,6 @@ static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb)
atomic_inc(&skb->users);
treq->pktopts = skb;
}
treq->iif = sk->sk_bound_dev_if;

/* So that link locals have meaning */
if (!sk->sk_bound_dev_if &&
ipv6_addr_type(&treq->rmt_addr) & IPV6_ADDR_LINKLOCAL)
treq->iif = inet6_iif(skb);

if (want_cookie) {
isn = cookie_v6_init_sequence(sk, skb, &req->mss);
Expand Down

0 comments on commit 8e8eeef

Please sign in to comment.