diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-08 22:17:51 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-09 13:04:30 +0200 |
commit | ab1e03849d7fb60e861b9715d90681f7120c3bbb (patch) | |
tree | e9ebf3e38f1ee3cb7c24a9b253da2e98f8db67bb /iptables/nft-arp.h | |
parent | 3d2e3c1838bf728e6b88912a77b0f9d8535f011b (diff) |
arptables-compat: allow to not specify a target
arptables allows this:
# arptables -I INPUT
however, arptables-compat says:
arptables v1.4.21: No target provided or initalization failed
Try `arptables -h' or 'arptables --help' for more information.
the compat utility must mimic the same behaviour.
Fix this by introducing the arptables_command_state abstraction that
is already available in ip{6}tables.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-arp.h')
-rw-r--r-- | iptables/nft-arp.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/iptables/nft-arp.h b/iptables/nft-arp.h new file mode 100644 index 00000000..930dae5c --- /dev/null +++ b/iptables/nft-arp.h @@ -0,0 +1,16 @@ +#ifndef _NFT_ARP_H_ +#define _NFT_ARP_H_ + +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 nft_rule *r, + struct arptables_command_state *cs); + +#endif |