diff options
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 5200c676fc72..667396536feb 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -467,7 +467,7 @@ static int tcp_v6_send_synack(const struct sock *sk, struct dst_entry *dst, | |||
467 | opt = ireq->ipv6_opt; | 467 | opt = ireq->ipv6_opt; |
468 | if (!opt) | 468 | if (!opt) |
469 | opt = rcu_dereference(np->opt); | 469 | opt = rcu_dereference(np->opt); |
470 | err = ip6_xmit(sk, skb, fl6, opt, np->tclass); | 470 | err = ip6_xmit(sk, skb, fl6, sk->sk_mark, opt, np->tclass); |
471 | rcu_read_unlock(); | 471 | rcu_read_unlock(); |
472 | err = net_xmit_eval(err); | 472 | err = net_xmit_eval(err); |
473 | } | 473 | } |
@@ -837,8 +837,7 @@ static void tcp_v6_send_response(const struct sock *sk, struct sk_buff *skb, u32 | |||
837 | dst = ip6_dst_lookup_flow(ctl_sk, &fl6, NULL); | 837 | dst = ip6_dst_lookup_flow(ctl_sk, &fl6, NULL); |
838 | if (!IS_ERR(dst)) { | 838 | if (!IS_ERR(dst)) { |
839 | skb_dst_set(buff, dst); | 839 | skb_dst_set(buff, dst); |
840 | ctl_sk->sk_mark = fl6.flowi6_mark; | 840 | ip6_xmit(ctl_sk, buff, &fl6, fl6.flowi6_mark, NULL, tclass); |
841 | ip6_xmit(ctl_sk, buff, &fl6, NULL, tclass); | ||
842 | TCP_INC_STATS(net, TCP_MIB_OUTSEGS); | 841 | TCP_INC_STATS(net, TCP_MIB_OUTSEGS); |
843 | if (rst) | 842 | if (rst) |
844 | TCP_INC_STATS(net, TCP_MIB_OUTRSTS); | 843 | TCP_INC_STATS(net, TCP_MIB_OUTRSTS); |