Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jul 2020 19:07:47 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363281 - head/contrib/ipfilter/tools
Message-ID:  <202007171907.06HJ7lPV015953@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Fri Jul 17 19:07:47 2020
New Revision: 363281
URL: https://svnweb.freebsd.org/changeset/base/363281

Log:
  Make ipfstat -t header generic when IPv4 and IPv6 output are
  displayed in the same display.
  
  PR:		247952
  MFC after:	1 week

Modified:
  head/contrib/ipfilter/tools/ipfstat.c

Modified: head/contrib/ipfilter/tools/ipfstat.c
==============================================================================
--- head/contrib/ipfilter/tools/ipfstat.c	Fri Jul 17 19:07:44 2020	(r363280)
+++ head/contrib/ipfilter/tools/ipfstat.c	Fri Jul 17 19:07:47 2020	(r363281)
@@ -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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007171907.06HJ7lPV015953>