summaryrefslogtreecommitdiffstats
path: root/include/libnetfilter_log/libnetfilter_log.h
diff options
context:
space:
mode:
authorKen-ichirou MATSUZAWA <chamaken@gmail.com>2015-08-21 09:26:08 +0900
committerPablo Neira Ayuso <pablo@netfilter.org>2015-08-24 20:39:38 +0200
commitd3333c14bf32ceba24aca41c9b272f204b475183 (patch)
tree0bb46a8aa31c4b3d6c50b57e87e9b0daa6eeed0c /include/libnetfilter_log/libnetfilter_log.h
parent6496cf6bc96361ac4430c34b65127475c7c12dc8 (diff)
src: introduce new functions independent from libnfnetlink
The libnetfilter_log.c file contains the old API, its use is discouraged since it depends on libnfnetlink. The idea is to provide a set of helper functions that we can use in conjunction with libmnl, similar to what we have in libnetfilter_queue/nlmsg.c Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Diffstat (limited to 'include/libnetfilter_log/libnetfilter_log.h')
-rw-r--r--include/libnetfilter_log/libnetfilter_log.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libnetfilter_log/libnetfilter_log.h b/include/libnetfilter_log/libnetfilter_log.h
index 7812877..5087f6f 100644
--- a/include/libnetfilter_log/libnetfilter_log.h
+++ b/include/libnetfilter_log/libnetfilter_log.h
@@ -11,6 +11,7 @@
#include <stdint.h>
#include <sys/types.h>
+#include <linux/netlink.h>
#include <libnetfilter_log/linux_nfnetlink_log.h>
struct nflog_handle;
@@ -82,4 +83,10 @@ enum {
extern int nflog_snprintf_xml(char *buf, size_t len, struct nflog_data *tb, int flags);
+extern struct nlmsghdr *
+nflog_nlmsg_put_header(char *buf, uint8_t type, uint8_t family, uint16_t qnum);
+extern int nflog_attr_put_cfg_mode(struct nlmsghdr *nlh, uint8_t mode, uint32_t range);
+extern int nflog_attr_put_cfg_cmd(struct nlmsghdr *nlh, uint8_t cmd);
+extern int nflog_nlmsg_parse(const struct nlmsghdr *nlh, struct nlattr **attr);
+
#endif /* __LIBNETFILTER_LOG_H */