summaryrefslogtreecommitdiffstats
path: root/include/config.h
diff options
context:
space:
mode:
authorArturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>2014-05-06 13:28:33 +0200
committerArturo Borrero Gonzalez <aborrero@cica.es>2014-05-07 17:09:29 +0200
commitcaa1cf2960db0d0a01e707f5a82a05d0718ff498 (patch)
treedaad2ad6efadd88271a9351b52e7ee50049ac555 /include/config.h
parentc179ee88d91a84fc75dc4602cca500e8fa72ed66 (diff)
nft-sync: complete --fetch operation
This patch complete the --fetch operation in the server side. By now, the format of the ruleset is XML. In further patches we can include additional config options to let the admin choose one of XML/JSON. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 66580a4..c7c0b06 100644
--- a/include/config.h
+++ b/include/config.h
@@ -7,6 +7,8 @@
#include "fd.h"
#include "proto.h"
+#include <libmnl/libmnl.h>
+
enum nft_sync_mode {
NFTS_MODE_SERVER = (1 << 0),
NFTS_MODE_CLIENT = (1 << 1),
@@ -31,6 +33,7 @@ struct nft_sync_inst {
struct tcp_conf tcp;
struct nft_fd tcp_client_nfd;
struct nft_fd tcp_server_fd;
+ struct mnl_socket *nl_query_sock;
};
extern struct nft_sync_inst nfts_inst;