diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2013-02-23 17:50:31 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-12-30 23:50:25 +0100 |
commit | 077785df023ad8947d44d19769bc6d91e3917633 (patch) | |
tree | 81edff765ee5eeb74997f2f1c4784058798776f0 /iptables/nft.h | |
parent | 1ff21a68502d67e056100da7e0da074467bc08ed (diff) |
nft: Split nft core to become family independant
This makes nft core code independant from the family. Each family needs
to implement and provide a struct nft_family_ops {}.
This split will ease the future support of bridge and arp rules manipulations.
[ updated header files and rebased upon the current tree --pablo ]
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft.h')
-rw-r--r-- | iptables/nft.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/iptables/nft.h b/iptables/nft.h index 3cffb777..d2a9b928 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -2,6 +2,7 @@ #define _NFT_H_ #include "xshared.h" +#include "nft-shared.h" struct nft_handle { int family; @@ -9,6 +10,7 @@ struct nft_handle { uint32_t portid; uint32_t seq; bool commit; + struct nft_family_ops *ops; }; int nft_init(struct nft_handle *h); |