From: Ondrej Zajicek (work) Date: Sat, 3 Mar 2018 22:20:33 +0000 (+0100) Subject: Minor fixme X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43a49a9411a52a0b6eea78dce4b7776e0da8ac0b;p=thirdparty%2Fbird.git Minor fixme --- diff --git a/nest/rt-table.c b/nest/rt-table.c index dc6a224a8..7fa99ee75 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -1436,33 +1436,6 @@ rt_examine(struct channel *c, net_addr *a, void (*cb)(struct proto *, void *, rt return v > 0; } -#if 0 -/* Sometimes protocols need to find one route in table without keeping their own copy. - * rt_route finds the best route after applying filter. - * As the routes may be temporary, successful find is announced by the callback. - * Returns 1 if the callback was called. - */ -int -rt_route(struct channel *c, net_addr *n, void (*callback)(struct proto *, void *, rte *), void *data) -{ - net *r; - - net_addr *n0 = alloca(n->length); - net_copy(n0, n); - - while (1) - { - r = net_find(c->table, n0); - if (r && rte_is_valid(r->routes) && rt_examine2(r, c->proto, c->out_filter, callback, data)) - return 1; - if (n0->pxlen == 0) - return 0; - n0->pxlen--; - net_normalize(n0); - } -} -#endif - /** * rt_refresh_begin - start a refresh cycle