]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft-shared: set correct register value
authorFlorian Westphal <fw@strlen.de>
Sat, 18 Dec 2021 20:14:15 +0000 (21:14 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 23 Dec 2021 13:39:43 +0000 (14:39 +0100)
commit49aa44ba9e09e5f62f3dccbe14b845e20cfc7b20
treea13264327413f0a7ef28f2416b5c9de8e3322509
parentb129b1cfcdbc82430cbbb90e83c344a14e77a808
nft-shared: set correct register value

NFTNL_EXPR_META_DREG equals NFTNL_EXPR_PAYLOAD_BASE, so we set
dreg to the payload base instead.

It "works" because the simple nft rules currently generated via
ipables-nft have base == register-number but this is a
coincidence.

Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/nft-shared.c