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:
Cy Schubert 2020-07-17 19:07:47 +00:00
parent 08c24e2f88
commit e082c89385
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363281

View File

@ -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);