path: root/include
diff options
authorPablo Neira Ayuso <>2015-06-26 11:33:22 +0200
committerPablo Neira Ayuso <>2015-08-18 01:13:35 +0200
commitbd21392a7cdfefdd4a069707da31474da5fe9458 (patch)
tree7420311471ac381318b7d36ef014d69af71258fe /include
parent94002b41384890224bfb14d1b0986bd8b279b17e (diff)
src: add cache infrastructure and use it for table objects
This patch introduces the generic object cache that is populated during the evaluation phase. The first client of this infrastructure are table objects. As a result, there is a single call to netlink_list_tables(). Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include')
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rule.h b/include/rule.h
index 3c915756..adff92fb 100644
--- a/include/rule.h
+++ b/include/rule.h
@@ -383,4 +383,7 @@ extern struct error_record *rule_postprocess(struct rule *rule);
struct netlink_ctx;
extern int do_command(struct netlink_ctx *ctx, struct cmd *cmd);
+extern int cache_update(enum cmd_ops cmd, struct list_head *msgs);
+extern void cache_release(void);
#endif /* NFTABLES_RULE_H */