From 26d3a0d77c67289341361bbd3254f2257eec69a0 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 12 May 2013 15:33:54 +0200 Subject: xtables: add new container xtables_args structure Signed-off-by: Pablo Neira Ayuso --- iptables/nft-shared.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'iptables/nft-shared.h') diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index b301d411..30e87bb3 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -88,4 +88,32 @@ void print_firewall_details(const struct iptables_command_state *cs, struct nft_family_ops *nft_family_ops_lookup(int family); +struct addr_mask { + union { + struct in_addr *v4; + struct in6_addr *v6; + } addr; + + unsigned int naddrs; + + union { + struct in_addr *v4; + struct in6_addr *v6; + } mask; +}; + +struct xtables_args { + int family; + uint16_t proto; + uint8_t flags; + uint8_t invflags; + char iniface[IFNAMSIZ], outiface[IFNAMSIZ]; + unsigned char iniface_mask[IFNAMSIZ], outiface_mask[IFNAMSIZ]; + bool goto_set; + const char *shostnetworkmask, *dhostnetworkmask; + const char *pcnt, *bcnt; + struct addr_mask s, d; + unsigned long long pcnt_cnt, bcnt_cnt; +}; + #endif -- cgit v1.2.3