]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
There can be multiple primary addresses with different scopes
authorMartin Mares <mj@ucw.cz>
Sat, 22 Feb 2003 22:39:06 +0000 (22:39 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 22 Feb 2003 22:39:06 +0000 (22:39 +0000)
and only the highest scope one has IA_PRIMARY set, so report
the remaining ones as "Unselected".

nest/iface.c

index f41bc211941809e8c3f99f949bb8f65460c50d46..157a977a6b1a0602fe0317742e3f687a24cea2c2 100644 (file)
@@ -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" : "");