diff options
author | Phil Sutter <phil@nwl.cc> | 2022-03-01 18:59:31 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-03-10 17:38:15 +0100 |
commit | b5f2faea325a315bfb932ebc634f3298d4824cae (patch) | |
tree | 62ae892c17a740836aa89cd99fac7ea0688be030 /iptables/nft-shared.h | |
parent | 17534cb18ed0a5052dc45c117401251359dba6aa (diff) |
nft: Simplify immediate parsing
Implementations of parse_immediate callback are mostly trivial, the only
relevant part is access to family-specific parts of struct
iptables_command_state when setting goto flag for iptables and
ip6tables. Refactor them into simple set_goto_flag callbacks.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r-- | iptables/nft-shared.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index 0788e98a..04b1d97f 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -93,7 +93,7 @@ struct nft_family_ops { void *data); void (*parse_lookup)(struct nft_xt_ctx *ctx, struct nftnl_expr *e, void *data); - void (*parse_immediate)(const char *jumpto, bool nft_goto, void *data); + void (*set_goto_flag)(struct iptables_command_state *cs); void (*print_table_header)(const char *tablename); void (*print_header)(unsigned int format, const char *chain, |