summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2003-02-22 22:39:06 +0000
committerMartin Mares <mj@ucw.cz>2003-02-22 22:39:06 +0000
commit7b7a7b43a6915efbe9180f07cd1284a39efacf02 (patch)
tree612750fbd099a5f6e8f343c5d048bc86015c4b33 /nest
parent8001948b43c9367e86473630f58527249d7da04f (diff)
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".
Diffstat (limited to 'nest')
-rw-r--r--nest/iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/iface.c b/nest/iface.c
index f41bc211..157a977a 100644
--- a/nest/iface.c
+++ b/nest/iface.c
@@ -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" : "");