From d06a875b042b608e61b2d5a2bb594641d3e1322f Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Sun, 7 Feb 2021 19:21:42 +0100 Subject: Filter: Recursive filter iteration code Add macros for recursive filter iteration that allows to examine all instructions reachable from a filter. --- filter/data.h | 1 + 1 file changed, 1 insertion(+) (limited to 'filter/data.h') diff --git a/filter/data.h b/filter/data.h index a0ec3819..61cdb43e 100644 --- a/filter/data.h +++ b/filter/data.h @@ -175,6 +175,7 @@ struct f_tree *build_tree(struct f_tree *); const struct f_tree *find_tree(const struct f_tree *t, const struct f_val *val); int same_tree(const struct f_tree *t0, const struct f_tree *t2); void tree_format(const struct f_tree *t, buffer *buf); +void tree_walk(const struct f_tree *t, void (*hook)(const struct f_tree *, void *), void *data); struct f_trie *f_new_trie(linpool *lp, uint data_size); void *trie_add_prefix(struct f_trie *t, const net_addr *n, uint l, uint h); -- cgit v1.2.3