path: root/include
diff options
authorPablo Neira Ayuso <>2018-11-19 11:41:07 +0100
committerPablo Neira Ayuso <>2018-11-19 13:49:34 +0100
commitd7476ddd5f7de35cbc1b5b13d52733f788172ada (patch)
tree0c3f9534c38f8ee73b8828814c26de7b2fd4907c /include
parenta4cac0c5d7810c9ff447d678cf20bc32ad543277 (diff)
src: introduce simple hints on incorrect table
This patch adds simple infrastructure to provide a hints to user on references to incorrect table. While at it, remove "Could not process rule:" which I think it is implicit in the error. # nft rule x y ip saddr @y Error: No such file or directory; did you mean table ‘x’ in family inet? Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include')
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rule.h b/include/rule.h
index 197efab4..a3e0bf11 100644
--- a/include/rule.h
+++ b/include/rule.h
@@ -153,6 +153,8 @@ extern void table_free(struct table *table);
extern void table_add_hash(struct table *table, struct nft_cache *cache);
extern struct table *table_lookup(const struct handle *h,
const struct nft_cache *cache);
+extern struct table *table_lookup_fuzzy(const struct handle *h,
+ const struct nft_cache *cache);
* enum chain_flags - chain flags