[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210709152823.2220-1-ovov@yandex-team.ru>
Date: Fri, 9 Jul 2021 18:28:23 +0300
From: Alexander Ovechkin <ovov@...dex-team.ru>
To: netdev@...r.kernel.org
Cc: edumazet@...gle.com, davem@...emloft.net, jhs@...atatu.com,
zeil@...dex-team.ru
Subject: [PATCH v2] net: send SYNACK packet with accepted fwmark
commit e05a90ec9e16 ("net: reflect mark on tcp syn ack packets")
fixed IPv4 only.
This part is for the IPv6 side.
Fixes: e05a90ec9e16 ("net: reflect mark on tcp syn ack packets")
Signed-off-by: Alexander Ovechkin <ovov@...dex-team.ru>
Acked-by: Dmitry Yakunin <zeil@...dex-team.ru>
Reviewed-by: Eric Dumazet <edumazet@...gle.com>
---
net/ipv6/tcp_ipv6.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 323989927a0a..0ce52d46e4f8 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -555,7 +555,7 @@ static int tcp_v6_send_synack(const struct sock *sk, struct dst_entry *dst,
opt = ireq->ipv6_opt;
if (!opt)
opt = rcu_dereference(np->opt);
- err = ip6_xmit(sk, skb, fl6, sk->sk_mark, opt,
+ err = ip6_xmit(sk, skb, fl6, skb->mark ? : sk->sk_mark, opt,
tclass, sk->sk_priority);
rcu_read_unlock();
err = net_xmit_eval(err);
--
2.17.1
Powered by blists - more mailing lists