path: root/include/libnetfilter_conntrack
diff options
authorPablo Neira Ayuso <>2012-04-16 12:13:45 +0200
committerPablo Neira Ayuso <>2012-05-26 16:11:35 +0200
commitd773fb2afc097a08d51eae42740c63142b1752cf (patch)
tree83d60033ed8124ebe77b2993b12c309e94a1433c /include/libnetfilter_conntrack
parent95b3bf6576165e1bbe23d55d5f15b7ebf9c98dc4 (diff)
expect: add new API to build/parse ctnetlink messages using libmnl
This patch adds support to build and to parse netlink messages from/to one user-space nf_conntrack object. It uses libmnl, thus libnetfilter_conntrack now depends on this library. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/libnetfilter_conntrack')
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libnetfilter_conntrack/libnetfilter_conntrack.h b/include/libnetfilter_conntrack/libnetfilter_conntrack.h
index 87c73a3..fbd67ef 100644
--- a/include/libnetfilter_conntrack/libnetfilter_conntrack.h
+++ b/include/libnetfilter_conntrack/libnetfilter_conntrack.h
@@ -680,6 +680,11 @@ int nfexp_build_query(struct nfnl_subsys_handle *ssh,
void *buffer,
unsigned int size);
+/* New low level API: netlink functions */
+extern int nfexp_nlmsg_build(struct nlmsghdr *nlh, const struct nf_expect *exp);
+extern int nfexp_nlmsg_parse(const struct nlmsghdr *nlh, struct nf_expect *exp);
/* Bitset representing status of connection. Taken from ip_conntrack.h
* Note: For backward compatibility this shouldn't ever change