path: root/include/netlink.h
diff options
authorPablo Neira Ayuso <>2015-09-15 13:20:34 +0200
committerPablo Neira Ayuso <>2015-09-16 15:14:33 +0200
commitd6f06c3069990759a95a28c5dfcb76e9c6eebae0 (patch)
treed685c0921304b259518e3e1214cad8c95d4603db /include/netlink.h
parentb716c2b48a77fd0c01be128d704d9cd2cd5243b3 (diff)
src: use new symbols in libnftnl
Adapt the nftables code to use the new symbols in libnftnl. This patch contains quite some renaming to reserve the nft_ prefix for our high level library. Explicitly request libnftnl 1.0.5 at configure stage. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/netlink.h')
1 files changed, 13 insertions, 13 deletions
diff --git a/include/netlink.h b/include/netlink.h
index 185c4357..7bf7ea0d 100644
--- a/include/netlink.h
+++ b/include/netlink.h
@@ -33,11 +33,11 @@ struct netlink_ctx {
bool batch_supported;
-extern struct nft_table *alloc_nft_table(const struct handle *h);
-extern struct nft_chain *alloc_nft_chain(const struct handle *h);
-extern struct nft_rule *alloc_nft_rule(const struct handle *h);
-extern struct nft_rule_expr *alloc_nft_expr(const char *name);
-extern struct nft_set *alloc_nft_set(const struct handle *h);
+extern struct nftnl_table *alloc_nftnl_table(const struct handle *h);
+extern struct nftnl_chain *alloc_nftnl_chain(const struct handle *h);
+extern struct nftnl_rule *alloc_nftnl_rule(const struct handle *h);
+extern struct nftnl_expr *alloc_nft_expr(const char *name);
+extern struct nftnl_set *alloc_nftnl_set(const struct handle *h);
struct nft_data_linearize {
uint32_t len;
@@ -81,10 +81,10 @@ extern struct expr *netlink_alloc_data(const struct location *loc,
enum nft_registers dreg);
extern void netlink_linearize_rule(struct netlink_ctx *ctx,
- struct nft_rule *nlr,
+ struct nftnl_rule *nlr,
const struct rule *rule);
extern struct rule *netlink_delinearize_rule(struct netlink_ctx *ctx,
- const struct nft_rule *r);
+ const struct nftnl_rule *r);
extern int netlink_add_rule(struct netlink_ctx *ctx, const struct handle *h,
const struct rule *rule, uint32_t flags);
@@ -145,11 +145,11 @@ extern int netlink_delete_setelems(struct netlink_ctx *ctx, const struct handle
extern int netlink_get_setelems(struct netlink_ctx *ctx, const struct handle *h,
const struct location *loc, struct set *set);
-extern void netlink_dump_table(struct nft_table *nlt);
-extern void netlink_dump_chain(struct nft_chain *nlc);
-extern void netlink_dump_rule(struct nft_rule *nlr);
-extern void netlink_dump_expr(struct nft_rule_expr *nle);
-extern void netlink_dump_set(struct nft_set *nls);
+extern void netlink_dump_table(struct nftnl_table *nlt);
+extern void netlink_dump_chain(struct nftnl_chain *nlc);
+extern void netlink_dump_rule(struct nftnl_rule *nlr);
+extern void netlink_dump_expr(struct nftnl_expr *nle);
+extern void netlink_dump_set(struct nftnl_set *nls);
extern int netlink_batch_send(struct list_head *err_list);
@@ -168,7 +168,7 @@ extern int netlink_flush_ruleset(struct netlink_ctx *ctx,
const struct handle *h,
const struct location *loc);
-extern struct nft_ruleset *netlink_dump_ruleset(struct netlink_ctx *ctx,
+extern struct nftnl_ruleset *netlink_dump_ruleset(struct netlink_ctx *ctx,
const struct handle *h,
const struct location *loc);
struct netlink_mon_handler {