Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314718
b: refs/heads/master
c: 9494218
h: refs/heads/master
v: v3
  • Loading branch information
Neal Cardwell authored and David S. Miller committed Jun 29, 2012
1 parent a538eed commit f82637a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 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: 3840a06e6046aaee95f33a120499d2dc8c054b9d
refs/heads/master: 9494218fbae2f88bd3f9b887714734abfdf38bab
29 changes: 6 additions & 23 deletions trunk/net/ipv6/tcp_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,34 +485,17 @@ static int tcp_v6_send_synack(struct sock *sk,
struct inet6_request_sock *treq = inet6_rsk(req);
struct ipv6_pinfo *np = inet6_sk(sk);
struct sk_buff * skb;
struct ipv6_txoptions *opt = NULL;
struct in6_addr * final_p, final;
struct ipv6_txoptions *opt = np->opt;
struct flowi6 fl6;
struct dst_entry *dst;
int err;

memset(&fl6, 0, sizeof(fl6));
fl6.flowi6_proto = IPPROTO_TCP;
fl6.daddr = treq->rmt_addr;
fl6.saddr = treq->loc_addr;
fl6.flowlabel = 0;
fl6.flowi6_oif = treq->iif;
fl6.flowi6_mark = sk->sk_mark;
fl6.fl6_dport = inet_rsk(req)->rmt_port;
fl6.fl6_sport = inet_rsk(req)->loc_port;
security_req_classify_flow(req, flowi6_to_flowi(&fl6));

opt = np->opt;
final_p = fl6_update_dst(&fl6, opt, &final);
int err = -ENOMEM;

dst = ip6_dst_lookup_flow(sk, &fl6, final_p, false);
if (IS_ERR(dst)) {
err = PTR_ERR(dst);
dst = NULL;
dst = inet6_csk_route_req(sk, &fl6, req);
if (!dst)
goto done;
}

skb = tcp_make_synack(sk, dst, req, rvp);
err = -ENOMEM;

if (skb) {
__tcp_v6_send_check(skb, &treq->loc_addr, &treq->rmt_addr);

Expand Down

0 comments on commit f82637a

Please sign in to comment.