From 0d3070824da904bd0f3f576b353b738bfa15a53a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 7 May 2000 11:32:34 +0000 Subject: Don't count networks with no routes (they are not displayed at all and will be removed during the next garbage collection pass). --- nest/rt-table.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nest') diff --git a/nest/rt-table.c b/nest/rt-table.c index 38253038..f3c7873e 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -720,7 +720,8 @@ rt_show_net(struct cli *c, net *n, struct rt_show_data *d) int ok; bsprintf(ia, "%I/%d", n->n.prefix, n->n.pxlen); - d->net_counter++; + if (n->routes) + d->net_counter++; for(e=n->routes; e; e=e->next) { struct ea_list *tmpa, *old_tmpa; -- cgit v1.2.3