diff options
author | Phil Sutter <phil@nwl.cc> | 2021-12-22 21:58:18 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-01-12 14:04:52 +0100 |
commit | dc8d8fce581bff4640803f3db07f0c2df5e7e18f (patch) | |
tree | e2a7feda9f3993e038f8f300633be127bb7081cc /iptables/nft-shared.h | |
parent | 98a4462f0abd54d96ed91d07d55608dd10fec414 (diff) |
xtables: Move struct nft_xt_cmd_parse to xshared.h
Preparing for shared use with legacy variants, move it to "neutral
ground" and give it a more generic name.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r-- | iptables/nft-shared.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index bcf8486e..4948aef7 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -210,20 +210,8 @@ struct xtables_args { unsigned long long pcnt_cnt, bcnt_cnt; }; -struct nft_xt_cmd_parse { - unsigned int command; - unsigned int rulenum; - char *table; - const char *chain; - const char *newname; - const char *policy; - bool restore; - int verbose; - bool xlate; -}; - void do_parse(struct nft_handle *h, int argc, char *argv[], - struct nft_xt_cmd_parse *p, struct iptables_command_state *cs, + struct xt_cmd_parse *p, struct iptables_command_state *cs, struct xtables_args *args); struct nftnl_chain_list; |