summaryrefslogtreecommitdiffstats
path: root/include/netlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/netlink.h')
-rw-r--r--include/netlink.h26
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 {