summaryrefslogtreecommitdiffstats
path: root/include/mnl.h
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2014-04-16 18:43:17 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-04-25 17:45:33 +0200
commitf9563c0feb24d40036467ac8a3b7e9f41950df1e (patch)
treef08d0f160ef638cca8a6734ada140cccab208a6e /include/mnl.h
parent1be55ff3a9866cbee8fcde8d8f9425cb3d8af05d (diff)
src: add events reporting
This patch adds a basic events reporting option to nft. The syntax is: % nft monitor [new|destroy] [tables|chains|rules|sets|elements] [xml|json] Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/mnl.h')
-rw-r--r--include/mnl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mnl.h b/include/mnl.h
index f4de27db..ece7ee7f 100644
--- a/include/mnl.h
+++ b/include/mnl.h
@@ -67,4 +67,7 @@ int mnl_nft_setelem_get(struct mnl_socket *nf_sock, struct nft_set *nls);
struct nft_ruleset *mnl_nft_ruleset_dump(struct mnl_socket *nf_sock,
uint32_t family);
+int mnl_nft_event_listener(struct mnl_socket *nf_sock,
+ int (*cb)(const struct nlmsghdr *nlh, void *data),
+ void *cb_data);
#endif /* _NFTABLES_MNL_H_ */