diff options
author | Phil Sutter <phil@nwl.cc> | 2018-07-19 18:31:55 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-07-19 22:16:15 +0200 |
commit | d9c6a5d0977a6d8bbe772dbc31a2c4f58eec1708 (patch) | |
tree | 6b7530dac45c0bbda47b483d547e71e298168b26 /iptables/nft-arp.h | |
parent | 87b5b9e2240e7cd5487d160cc3e059c61622ce75 (diff) |
xtables: merge {ip,arp}tables_command_state structs
Differences between both structs are marginal (apart from
arptables_command_state being much smaller), so merge them into one.
Struct iptables_command_state is already shared between iptables,
ip6tables and ebtables.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-arp.h')
-rw-r--r-- | iptables/nft-arp.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/iptables/nft-arp.h b/iptables/nft-arp.h index 05889b49..e33bb748 100644 --- a/iptables/nft-arp.h +++ b/iptables/nft-arp.h @@ -4,13 +4,7 @@ extern char *opcodes[]; #define NUMOPCODES 9 -struct arptables_command_state { - struct arpt_entry fw; - struct xtables_target *target; - const char *jumpto; -}; - -void nft_rule_to_arptables_command_state(struct nftnl_rule *r, - struct arptables_command_state *cs); +void nft_rule_to_arptables_command_state(const struct nftnl_rule *r, + struct iptables_command_state *cs); #endif |