diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2015-12-16 10:25:12 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-12-19 23:49:47 +0100 |
commit | 5e173e9f631913f68cf38d57a69c3ce6faf60d1e (patch) | |
tree | aa873aa790686a108cab830c63cae1f946f61e96 /nest/rt-table.c | |
parent | d7661fbe9dea980c61daa01a11a9aa59fa7be426 (diff) |
Stop perusing f_prefix for non-prefix-set uses
Multiple changes by Ondrej Santiago Zajicek
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index 05073ce0..6ac659a8 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -2293,13 +2293,14 @@ rt_update_hostentry(rtable *tab, struct hostentry *he) he->igp_metric = rt_get_igp_metric(e); } - /* XXXX */ done: /* Add a prefix range to the trie */ + /* XXXX if (ipa_is_ip4(he->addr)) trie_add_prefix(tab->hostcache->trie, he->addr, IP4_MAX_PREFIX_LENGTH, pxlen, IP4_MAX_PREFIX_LENGTH); else trie_add_prefix(tab->hostcache->trie, he->addr, IP6_MAX_PREFIX_LENGTH, pxlen, IP6_MAX_PREFIX_LENGTH); + */ rta_free(old_src); return old_src != he->src; |