mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-14 12:23:58 +00:00
Make ipfstat -t header generic when IPv4 and IPv6 output are
displayed in the same display. PR: 247952 MFC after: 1 week
This commit is contained in:
parent
08c24e2f88
commit
e082c89385
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363281
|
@ -1973,6 +1973,9 @@ static char *getip(v, addr)
|
|||
static char hostbuf[MAXHOSTNAMELEN+1];
|
||||
#endif
|
||||
|
||||
if (v == 0)
|
||||
return ("any");
|
||||
|
||||
if (v == 4)
|
||||
return inet_ntoa(addr->in4);
|
||||
|
||||
|
|
Loading…
Reference in a new issue