diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-13 13:42:42 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-13 13:42:42 +0200 |
commit | 9449c91ab2eb962b17989125c712f805f82a092b (patch) | |
tree | 786e8faaf9e89eaf1767688857108d2cd6be96a6 /nest/rt-table.c | |
parent | 56d6c530eba46dde7280d6743fea7e750f2d5635 (diff) | |
download | bird-9449c91ab2eb962b17989125c712f805f82a092b.tar bird-9449c91ab2eb962b17989125c712f805f82a092b.zip |
Added `show route for <prefix-or-ipa>' which looks up route leading to
given network.
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); |