summaryrefslogtreecommitdiffstats
path: root/include/rule.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-11-19 13:02:03 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-11-19 13:53:15 +0100
commit285bb67a11ad2a6cac29b9f0eff3cf6066e0d39f (patch)
tree85f6388725415ba5752943bdbfdeb768efab4644 /include/rule.h
parent9f7817a4e0223c5e285a3f4a4dccbf1dafa7fc4e (diff)
src: introduce simple hints on incorrect set
# nft rule x y ip saddr @y Error: No such file or directory; did you mean set ‘y’ in table inet ‘x’? rule x y ip saddr @y ^^ Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/rule.h')
-rw-r--r--include/rule.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rule.h b/include/rule.h
index 66786bdb..85b9f80d 100644
--- a/include/rule.h
+++ b/include/rule.h
@@ -308,6 +308,9 @@ extern void set_add_hash(struct set *set, struct table *table);
extern struct set *set_lookup(const struct table *table, const char *name);
extern struct set *set_lookup_global(uint32_t family, const char *table,
const char *name, struct nft_cache *cache);
+extern struct set *set_lookup_fuzzy(const char *set_name,
+ const struct nft_cache *cache,
+ const struct table **table);
extern const char *set_policy2str(uint32_t policy);
extern void set_print(const struct set *set, struct output_ctx *octx);
extern void set_print_plain(const struct set *s, struct output_ctx *octx);