diff options
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index cfaa893..7133ed4 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -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); |