diff options
author | Thomas Gschwantner <tharre3@gmail.com> | 2019-04-13 22:16:09 +0200 |
---|---|---|
committer | Thomas Gschwantner <tharre3@gmail.com> | 2019-06-02 00:39:36 +0200 |
commit | 48f5aa33ca8024905e5b9e7799cd42ba5cda3d39 (patch) | |
tree | 1c07a3ffaf0aac005dca228016456886281cb247 /radix-trie.h | |
parent | radix-trie: fix fls/fls64 (diff) | |
download | wg-dynamic-48f5aa33ca8024905e5b9e7799cd42ba5cda3d39.tar.xz wg-dynamic-48f5aa33ca8024905e5b9e7799cd42ba5cda3d39.zip |
radix-trie: allow both ipv4 and ipv6 debug output
Diffstat (limited to '')
-rw-r--r-- | radix-trie.h | 5 |
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 |