diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-11-19 12:22:06 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-11-19 13:52:37 +0100 |
commit | 9f7817a4e0223c5e285a3f4a4dccbf1dafa7fc4e (patch) | |
tree | a5de2f735820df6eee1ef41b81b178ee6065ad44 /include/rule.h | |
parent | d7476ddd5f7de35cbc1b5b13d52733f788172ada (diff) |
src: introduce simple hints on incorrect chain
# nft list chain x y
Error: No such file or directory; did you mean chain ‘y’ in table inet ‘x’?
list chain x y
^
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/rule.h')
-rw-r--r-- | include/rule.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rule.h b/include/rule.h index a3e0bf11..66786bdb 100644 --- a/include/rule.h +++ b/include/rule.h @@ -221,6 +221,9 @@ extern void chain_free(struct chain *chain); extern void chain_add_hash(struct chain *chain, struct table *table); extern struct chain *chain_lookup(const struct table *table, const struct handle *h); +extern struct chain *chain_lookup_fuzzy(const struct handle *h, + const struct nft_cache *cache, + const struct table **table); extern const char *family2str(unsigned int family); extern const char *hooknum2str(unsigned int family, unsigned int hooknum); |