From c6836c19592dbe1a8be9b0ad76c0ae09abcb82e7 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 18 Sep 2013 14:57:38 +0200 Subject: nft: consolidate nft_rule_new to support ARP This patch removes nft_arp_rule_new, which almost a copy and paste of the original nft_rule_new. This patch generalizes the infrastructure to support ARP. Signed-off-by: Pablo Neira Ayuso --- iptables/nft.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'iptables/nft.h') diff --git a/iptables/nft.h b/iptables/nft.h index 09d3e0c5..8ddde48d 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -100,8 +100,10 @@ void nft_rule_list_destroy(struct nft_rule_list *list); */ int add_counters(struct nft_rule *r, uint64_t packets, uint64_t bytes); int add_verdict(struct nft_rule *r, int verdict); +int add_match(struct nft_rule *r, struct xt_entry_match *m); int add_target(struct nft_rule *r, struct xt_entry_target *t); int add_jumpto(struct nft_rule *r, const char *name, int verdict); +int add_action(struct nft_rule *r, struct iptables_command_state *cs, int ip_flags); enum nft_rule_print { NFT_RULE_APPEND, -- cgit v1.2.3