aboutsummaryrefslogtreecommitdiffstats
path: root/radix-trie.h
diff options
context:
space:
mode:
authorThomas Gschwantner <tharre3@gmail.com>2019-04-13 22:16:09 +0200
committerThomas Gschwantner <tharre3@gmail.com>2019-06-02 00:39:36 +0200
commit48f5aa33ca8024905e5b9e7799cd42ba5cda3d39 (patch)
tree1c07a3ffaf0aac005dca228016456886281cb247 /radix-trie.h
parentradix-trie: fix fls/fls64 (diff)
downloadwg-dynamic-48f5aa33ca8024905e5b9e7799cd42ba5cda3d39.tar.xz
wg-dynamic-48f5aa33ca8024905e5b9e7799cd42ba5cda3d39.zip
radix-trie: allow both ipv4 and ipv6 debug output
Diffstat (limited to 'radix-trie.h')
-rw-r--r--radix-trie.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/radix-trie.h b/radix-trie.h
index 9e210af..eafda95 100644
--- a/radix-trie.h
+++ b/radix-trie.h
@@ -28,8 +28,9 @@ int radix_tryinsert_v6(struct radix_trie *root, const struct in6_addr *ip,
uint8_t cidr, void *data);
#ifdef DEBUG
-void node_to_str(struct radix_node *node, char *buf);
-void debug_print_trie(struct radix_node *root);
+void node_to_str(struct radix_node *node, char *buf, uint8_t bits);
+void debug_print_trie_v4(struct radix_trie *trie);
+void debug_print_trie_v6(struct radix_trie *trie);
#endif
#endif