diff options
Diffstat (limited to 'include/libnetfilter_log/libnetfilter_log.h')
-rw-r--r-- | include/libnetfilter_log/libnetfilter_log.h | 7 |
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 */ |