Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
0d307082
Commit
0d307082
authored
May 07, 2000
by
Martin Mareš
Browse files
Don't count networks with no routes (they are not displayed at all and
will be removed during the next garbage collection pass).
parent
23693958
Changes
1
Show whitespace changes
Inline
Side-by-side
nest/rt-table.c
View file @
0d307082
...
@@ -720,6 +720,7 @@ rt_show_net(struct cli *c, net *n, struct rt_show_data *d)
...
@@ -720,6 +720,7 @@ rt_show_net(struct cli *c, net *n, struct rt_show_data *d)
int
ok
;
int
ok
;
bsprintf
(
ia
,
"%I/%d"
,
n
->
n
.
prefix
,
n
->
n
.
pxlen
);
bsprintf
(
ia
,
"%I/%d"
,
n
->
n
.
prefix
,
n
->
n
.
pxlen
);
if
(
n
->
routes
)
d
->
net_counter
++
;
d
->
net_counter
++
;
for
(
e
=
n
->
routes
;
e
;
e
=
e
->
next
)
for
(
e
=
n
->
routes
;
e
;
e
=
e
->
next
)
{
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment