netfilter: Use flowlabel flow key when re-routing mangled packets
Subsystems (2)
Florian Westphal
maintainerPATCH 1/1 netfilter: Use flowlabel flow key when re-routing mangled packets
'ip6 dscp set $v' in an nftables outpute route chain has no effect. While nftables does detect the dscp change and calls the reroute hook. But ip6_route_me_harder never sets the dscp/flowlabel:
flowlabel/dsfield routing rules are ignored and no reroute takes place.
Thanks to Yi Chen for an excellent reproducer script that I used to validate this change.
--- net/ipv6/netfilter.c | 1 + 1 file changed, 1 insertion(+)
net/ipv6/netfilter.c +1 -0
@@ -36,6 +36,7 @@ int ip6_route_me_harder(struct net *net, struct sock *sk_partial, struct sk_buff .flowi6_uid = sock_net_uid(net, sk), .daddr = iph->daddr, .saddr = iph->saddr, + .flowlabel = ip6_flowinfo(iph), };int err;
Signature · 1 line
2.44.2
Quoted 7 lines · Florian Westphal
'ip6 dscp set $v' in an nftables outpute route chain has no effect. While nftables does detect the dscp change and calls the reroute hook. But
ip6_route_me_hardernever sets the dscp/flowlabel:
flowlabel/dsfield routing rules are ignored and no reroute takes place.Thanks to Yi Chen for an excellent reproducer script that I used to validate this change.
Applied to nf.git, thanks Florian