summaryrefslogtreecommitdiffstats
path: root/iptables/nft-ipv6.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-05-05 16:01:29 +0200
committerPhil Sutter <phil@nwl.cc>2023-08-11 15:56:38 +0200
commit402b9b3c07c8192be3bfc0191fbf56401e26a003 (patch)
treee9ad98d8b47a739f314931e82436b05248ed192d /iptables/nft-ipv6.c
parent2d6221641d66b502b1a49d3267bd8126b0448a1d (diff)
nft: Pass nft_handle to add_{target,action}()
Prepare for varying rule content based on a global flag. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-ipv6.c')
-rw-r--r--iptables/nft-ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c
index d53f87c1..8bc633df 100644
--- a/iptables/nft-ipv6.c
+++ b/iptables/nft-ipv6.c
@@ -81,7 +81,7 @@ static int nft_ipv6_add(struct nft_handle *h, struct nft_rule_ctx *ctx,
if (add_counters(r, cs->counters.pcnt, cs->counters.bcnt) < 0)
return -1;
- return add_action(r, cs, !!(cs->fw6.ipv6.flags & IP6T_F_GOTO));
+ return add_action(h, r, cs, !!(cs->fw6.ipv6.flags & IP6T_F_GOTO));
}
static bool nft_ipv6_is_same(const struct iptables_command_state *a,