Don't show a prefixlen when a destination address is present

in ``show iface''.
This commit is contained in:
brian 2001-08-15 13:05:39 +00:00
parent db01b7581a
commit bbebfb9f8c

View File

@ -647,7 +647,8 @@ iface_Show(struct cmdargs const *arg)
prompt_Printf(arg->prompt, " --> %s",
ncpaddr_ntoa(&iface->addr[f].peer));
ncprange_getwidth(&iface->addr[f].ifa, &width);
prompt_Printf(arg->prompt, " prefixlen %d", width);
if (ncpaddr_family(&iface->addr[f].peer) == AF_UNSPEC)
prompt_Printf(arg->prompt, " prefixlen %d", width);
if ((scopeid = ncprange_scopeid(&iface->addr[f].ifa)) != -1)
prompt_Printf(arg->prompt, " scopeid 0x%x", (unsigned)scopeid);
break;