1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Added `show route for <prefix-or-ipa>' which looks up route leading to

given network.
This commit is contained in:
Martin Mares
2000-05-13 11:42:42 +00:00
parent 56d6c530eb
commit 9449c91ab2
3 changed files with 12 additions and 3 deletions

View File

@@ -846,7 +846,10 @@ rt_show(struct rt_show_data *d)
}
else
{
n = fib_find(&d->table->fib, &d->prefix, d->pxlen);
if (d->show_for)
n = fib_route(&d->table->fib, d->prefix, d->pxlen);
else
n = fib_find(&d->table->fib, &d->prefix, d->pxlen);
if (n)
{
rt_show_net(this_cli, n, d);