diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-03-10 11:43:32 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-12-30 23:50:27 +0100 |
commit | c924c0cd07440aa9ce7465e2ba68fb266f07d7c3 (patch) | |
tree | 5ec709dd5a89fa8b80bec6d2ca0965d56634362e /iptables/xtables-config.c | |
parent | c1ee3f1849436d81579632a1cc8ba6a4b878fc3c (diff) |
xtables-config: priority has to be per-chain to support
To support NAT table chain configuration appropriately. Modify example
configuration file as well.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-config.c')
-rw-r--r-- | iptables/xtables-config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/iptables/xtables-config.c b/iptables/xtables-config.c index 16918bf6..fce03a19 100644 --- a/iptables/xtables-config.c +++ b/iptables/xtables-config.c @@ -39,7 +39,9 @@ int xtables_config_main(int argc, char *argv[]) struct nft_table *table; struct nft_chain *chain; const char *filename = NULL; - struct nft_handle h; + struct nft_handle h = { + .family = AF_INET, + }; if (argc > 2) { fprintf(stderr, "Usage: %s [<config_file>]\n", argv[0]); |