mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 12:48:43 +00:00
There can be multiple primary addresses with different scopes
and only the highest scope one has IA_PRIMARY set, so report the remaining ones as "Unselected".
This commit is contained in:
parent
8001948b43
commit
7b7a7b43a6
@ -612,7 +612,7 @@ if_show_addr(struct ifa *a)
|
||||
opp[0] = 0;
|
||||
cli_msg(-1003, "\t%I/%d (%s%s%s, scope %s%s)",
|
||||
a->ip, a->pxlen,
|
||||
(a->flags & IA_PRIMARY) ? "Primary" : (a->flags & IA_SECONDARY) ? "Secondary" : "???",
|
||||
(a->flags & IA_PRIMARY) ? "Primary" : (a->flags & IA_SECONDARY) ? "Secondary" : "Unselected",
|
||||
broad, opp,
|
||||
ip_scope_text(a->scope),
|
||||
(a->flags & IA_UNNUMBERED) ? ", unnumbered" : "");
|
||||
|
Loading…
Reference in New Issue
Block a user