path: root/include
diff options
authorPablo Neira Ayuso <>2010-10-28 17:04:16 +0200
committerPablo Neira Ayuso <>2010-11-09 00:42:27 +0100
commita729bb44a14f78f12edb09ae76ce04dbc171c266 (patch)
treec7b07c251c5c6579b9ee755cdf2851a90a1c5148 /include
parent58145ed8a0c6fc94ed42a1542a466e8d8ebc2afd (diff)
expect: export already implement low-level functions
This patch exports several low-level function that allow to build and parse netlink messages that contain ctnetlink expectation information. They have been in the tree for quite so long, but they were not exported. To leave the library in a consistent state (ctnetlink conntrack functions provide the similar functionality) I have decided to export them. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include')
1 files changed, 18 insertions, 0 deletions
diff --git a/include/libnetfilter_conntrack/libnetfilter_conntrack.h b/include/libnetfilter_conntrack/libnetfilter_conntrack.h
index 029eebd..5315f42 100644
--- a/include/libnetfilter_conntrack/libnetfilter_conntrack.h
+++ b/include/libnetfilter_conntrack/libnetfilter_conntrack.h
@@ -588,6 +588,24 @@ extern int nfexp_snprintf(char *buf,
extern int nfexp_catch(struct nfct_handle *h);
+/* low level API */
+extern int nfexp_build_expect(struct nfnl_subsys_handle *ssh,
+ void *req,
+ size_t size,
+ u_int16_t type,
+ u_int16_t flags,
+ const struct nf_expect *exp);
+extern int nfexp_parse_expect(enum nf_conntrack_msg_type type,
+ const struct nlmsghdr *nlh,
+ struct nf_expect *exp);
+extern int nfexp_build_query(struct nfnl_subsys_handle *ssh,
+ const enum nf_conntrack_query qt,
+ const void *data,
+ void *buffer,
+ unsigned int size);
/* Bitset representing status of connection. Taken from ip_conntrack.h
* Note: For backward compatibility this shouldn't ever change