From: Martin Mares Date: Sat, 22 Feb 2003 22:39:06 +0000 (+0000) Subject: There can be multiple primary addresses with different scopes X-Git-Tag: v1.2.0~440 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b7a7b43a6915efbe9180f07cd1284a39efacf02;p=thirdparty%2Fbird.git 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". --- diff --git a/nest/iface.c b/nest/iface.c index f41bc2119..157a977a6 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" : "");