mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Don't show a prefixlen when a destination address is present
in ``show iface''.
This commit is contained in:
parent
ad1f9eaedb
commit
a886247185
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81695
@ -647,6 +647,7 @@ iface_Show(struct cmdargs const *arg)
|
||||
prompt_Printf(arg->prompt, " --> %s",
|
||||
ncpaddr_ntoa(&iface->addr[f].peer));
|
||||
ncprange_getwidth(&iface->addr[f].ifa, &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);
|
||||
|
Loading…
Reference in New Issue
Block a user