diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-08 14:58:00 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-08 14:58:00 +0000 |
commit | 33a368ad594822239bfbaa2eab50c76171e09b9e (patch) | |
tree | e148b7bb0af78a0473520f1672e54721c3b80a4c /nest/rt-table.c | |
parent | 0c3588bf5e43936ea0f1e630dea500912b598c60 (diff) |
Implemented `show route count' which is `show route stats' with
exception that it doesn't print the routes themselves.
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index 975874a0..cf87a707 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -749,7 +749,8 @@ rt_show_net(struct cli *c, net *n, struct rt_show_data *d) if (ok) { d->show_counter++; - rt_show_rte(c, ia, e, d, tmpa); + if (d->stats < 2) + rt_show_rte(c, ia, e, d, tmpa); ia[0] = 0; } if (e != ee) |