From 9449c91ab2eb962b17989125c712f805f82a092b Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 13 May 2000 11:42:42 +0000 Subject: Added `show route for ' which looks up route leading to given network. --- nest/rt-table.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nest/rt-table.c') diff --git a/nest/rt-table.c b/nest/rt-table.c index cfaa8937..7133ed49 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); -- cgit v1.2.3