Skip to content

Commit 43b90bf

Browse files
Alexander Ovechkindavem330
authored andcommitted
net: send SYNACK packet with accepted fwmark
commit e05a90e ("net: reflect mark on tcp syn ack packets") fixed IPv4 only. This part is for the IPv6 side. Fixes: e05a90e ("net: reflect mark on tcp syn ack packets") Signed-off-by: Alexander Ovechkin <ovov@yandex-team.ru> Acked-by: Dmitry Yakunin <zeil@yandex-team.ru> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 0336f8f commit 43b90bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/tcp_ipv6.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ static int tcp_v6_send_synack(const struct sock *sk, struct dst_entry *dst,
555555
opt = ireq->ipv6_opt;
556556
if (!opt)
557557
opt = rcu_dereference(np->opt);
558-
err = ip6_xmit(sk, skb, fl6, sk->sk_mark, opt,
558+
err = ip6_xmit(sk, skb, fl6, skb->mark ? : sk->sk_mark, opt,
559559
tclass, sk->sk_priority);
560560
rcu_read_unlock();
561561
err = net_xmit_eval(err);

0 commit comments

Comments
 (0)