]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
src: Make cache_is_complete() public
authorPhil Sutter <phil@nwl.cc>
Fri, 7 Jun 2019 17:21:20 +0000 (19:21 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 7 Jun 2019 21:54:51 +0000 (23:54 +0200)
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/rule.h
src/rule.c

index 87b440b63ba5c8cb2b6ad5adbe30d547352a59ac..8ccdc2e1c143f53f3991e4e2f6b637430f95415a 100644 (file)
@@ -639,6 +639,7 @@ extern int cache_update(struct nft_ctx *ctx, enum cmd_ops cmd,
 extern void cache_flush(struct nft_ctx *ctx, enum cmd_ops cmd,
                        struct list_head *msgs);
 extern void cache_release(struct nft_cache *cache);
+extern bool cache_is_complete(struct nft_cache *cache, enum cmd_ops cmd);
 
 struct timeout_protocol {
        uint32_t array_size;
index 20fe6f3758cbcc9560205c5a0b6f9d441d68d5cc..ad549b1eee8acb9d9ff0ad80d3e463546828bcce 100644 (file)
@@ -232,7 +232,7 @@ static int cache_completeness(enum cmd_ops cmd)
        return 1;
 }
 
-static bool cache_is_complete(struct nft_cache *cache, enum cmd_ops cmd)
+bool cache_is_complete(struct nft_cache *cache, enum cmd_ops cmd)
 {
        return cache_completeness(cache->cmd) >= cache_completeness(cmd);
 }