path: root/include/libnetfilter_conntrack/libnetfilter_conntrack.h
diff options
authorPablo Neira Ayuso <>2011-02-22 13:09:56 +0100
committerPablo Neira Ayuso <>2011-02-22 13:09:56 +0100
commit6d1b6c378b40dfb29490d397979df329e25089a3 (patch)
tree0f439836edac2a4e42c6bdad01311fc82f5719d4 /include/libnetfilter_conntrack/libnetfilter_conntrack.h
parentbe4fb61b6e85a218879adda4e41abec8909d5653 (diff)
src: deprecate low level API
This patch deprecates the low level API. This API is not currently used by any known clients (at least, at a quick glance at google). These functions are a problem if we plan to port libnetfilter_conntrack upon libmnl since they contain specific libnfnetlink bits. I have also added __build_query_[ct|exp] to avoid compilation warnings. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/libnetfilter_conntrack/libnetfilter_conntrack.h')
1 files changed, 12 insertions, 6 deletions
diff --git a/include/libnetfilter_conntrack/libnetfilter_conntrack.h b/include/libnetfilter_conntrack/libnetfilter_conntrack.h
index 5fe2bc7..011e344 100644
--- a/include/libnetfilter_conntrack/libnetfilter_conntrack.h
+++ b/include/libnetfilter_conntrack/libnetfilter_conntrack.h
@@ -472,18 +472,21 @@ extern int nfct_filter_detach(int fd);
/* low level API: netlink functions */
-extern int nfct_build_conntrack(struct nfnl_subsys_handle *ssh,
+extern __attribute__((deprecated)) int
+nfct_build_conntrack(struct nfnl_subsys_handle *ssh,
void *req,
size_t size,
u_int16_t type,
u_int16_t flags,
const struct nf_conntrack *ct);
-extern int nfct_parse_conntrack(enum nf_conntrack_msg_type msg,
+extern __attribute__((deprecated))
+int nfct_parse_conntrack(enum nf_conntrack_msg_type msg,
const struct nlmsghdr *nlh,
struct nf_conntrack *ct);
-extern int nfct_build_query(struct nfnl_subsys_handle *ssh,
+extern __attribute__((deprecated))
+int nfct_build_query(struct nfnl_subsys_handle *ssh,
const enum nf_conntrack_query query,
const void *data,
void *req,
@@ -596,18 +599,21 @@ 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,
+extern __attribute__((deprecated))
+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,
+extern __attribute__((deprecated))
+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,
+extern __attribute__((deprecated))
+int nfexp_build_query(struct nfnl_subsys_handle *ssh,
const enum nf_conntrack_query qt,
const void *data,
void *buffer,