diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2015-02-21 14:05:20 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2015-02-21 14:05:20 +0100 |
commit | 51762a45b39f906fe72db2d3d46c9890cb01bbd8 (patch) | |
tree | c290e867b663144d57e0ebde1c5a827e2edf64c3 /nest | |
parent | bc7f4e0e3447c579f68b43d407b64a5262f0d11e (diff) |
Allows user data attached to f_trie_node structure.
Thanks to Alexander Chernikov for the patch.
Diffstat (limited to 'nest')
-rw-r--r-- | nest/rt-table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index 125f1d18..dbe0c50d 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -1988,7 +1988,7 @@ rt_init_hostcache(rtable *tab) hc->slab = sl_new(rt_table_pool, sizeof(struct hostentry)); hc->lp = lp_new(rt_table_pool, 1008); - hc->trie = f_new_trie(hc->lp); + hc->trie = f_new_trie(hc->lp, sizeof(struct f_trie_node)); tab->hostcache = hc; } @@ -2136,7 +2136,7 @@ rt_update_hostcache(rtable *tab) /* Reset the trie */ lp_flush(hc->lp); - hc->trie = f_new_trie(hc->lp); + hc->trie = f_new_trie(hc->lp, sizeof(struct f_trie_node)); WALK_LIST_DELSAFE(n, x, hc->hostentries) { |