summaryrefslogtreecommitdiffstats
path: root/src/rule.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rule.c')
-rw-r--r--src/rule.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rule.c b/src/rule.c
index 524db41e..3553b43d 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -1103,6 +1103,18 @@ struct table *table_lookup(const struct handle *h,
return NULL;
}
+struct table *table_lookup_fuzzy(const struct handle *h,
+ const struct nft_cache *cache)
+{
+ struct table *table;
+
+ list_for_each_entry(table, &cache->list, list) {
+ if (!strcmp(table->handle.table.name, h->table.name))
+ return table;
+ }
+ return NULL;
+}
+
const char *table_flags_name[TABLE_FLAGS_MAX] = {
"dormant",
};