diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-11-11 16:40:28 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-11-11 16:45:16 +0100 |
commit | 7462e4aa757dc28e74b4a731b3ee13079b04ef23 (patch) | |
tree | 52dcd2e16670af83f23a4d3c665b2252880230b0 /iptables/xtables-config.c | |
parent | c1b62f09259cdfa618cf63032de67689c991bd3e (diff) |
iptables-compat: Keep xtables-config and xtables-events out from tree
These binaries are part of the compat layer, however they provide more
features than actually available in the existing native iptables
binaries. So let's keep them out from the tree before the 1.6.0 release
as we only want to provide compatibility utils at this stage.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-config.c')
-rw-r--r-- | iptables/xtables-config.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/iptables/xtables-config.c b/iptables/xtables-config.c deleted file mode 100644 index b7cf6094..00000000 --- a/iptables/xtables-config.c +++ /dev/null @@ -1,46 +0,0 @@ -/* - * (C) 2012 by Pablo Neira Ayuso <pablo@netfilter.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published - * by the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This code has been sponsored by Sophos Astaro <http://www.sophos.com> - */ - -#include <stdio.h> -#include <stdlib.h> -#include <stdint.h> -#include <stdbool.h> -#include <string.h> -#include <errno.h> - -#include "xtables-multi.h" -#include "nft.h" - -int xtables_config_main(int argc, char *argv[]) -{ - struct nft_handle h = { - .family = AF_INET, - }; - const char *filename = NULL; - - if (argc > 2) { - fprintf(stderr, "Usage: %s [<config_file>]\n", argv[0]); - return EXIT_SUCCESS; - } - if (argc == 1) - filename = XTABLES_CONFIG_DEFAULT; - else - filename = argv[1]; - - if (nft_init(&h, xtables_ipv4) < 0) { - fprintf(stderr, "Failed to initialize nft: %s\n", - strerror(errno)); - return EXIT_FAILURE; - } - - return nft_xtables_config_load(&h, filename, NFT_LOAD_VERBOSE) == 0 ? - EXIT_SUCCESS : EXIT_FAILURE; -} |