summaryrefslogtreecommitdiffstats
path: root/include/rule.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-12-01 11:33:31 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-12-01 11:35:34 +0100
commitfa145fdf73d663eb69751800911cdd2853689dee (patch)
treea31ddcf17816fbfa02dc20a341f4039763de1806 /include/rule.h
parent0544632e14b993bed8f1ce4e3ad764f90740f96a (diff)
src: introduce simple hints on incorrect object
# nft add counter x test # nft list counter x test Error: No such file or directory; did you mean obj ‘test’ in table ip ‘x’? list counter x text ^^^^ 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 85b9f80d..88fed62e 100644
--- a/include/rule.h
+++ b/include/rule.h
@@ -392,6 +392,9 @@ void obj_free(struct obj *obj);
void obj_add_hash(struct obj *obj, struct table *table);
struct obj *obj_lookup(const struct table *table, const char *name,
uint32_t type);
+struct obj *obj_lookup_fuzzy(const char *obj_name,
+ const struct nft_cache *cache,
+ const struct table **t);
void obj_print(const struct obj *n, struct output_ctx *octx);
void obj_print_plain(const struct obj *obj, struct output_ctx *octx);
const char *obj_type_name(uint32_t type);