summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-07 13:32:34 +0200
committerMartin Mares <mj@ucw.cz>2000-05-07 13:32:34 +0200
commit0d3070824da904bd0f3f576b353b738bfa15a53a (patch)
tree60f008c9adc0a7d86688812fc57a7f873c37f857
parent23693958aa95edf5baaeaa5baa55725dc4895681 (diff)
downloadbird-0d3070824da904bd0f3f576b353b738bfa15a53a.tar
bird-0d3070824da904bd0f3f576b353b738bfa15a53a.zip
Don't count networks with no routes (they are not displayed at all and
will be removed during the next garbage collection pass).
-rw-r--r--nest/rt-table.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 3825303..f3c7873 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;