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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user