diff options
author | Cy Schubert <cy@FreeBSD.org> | 2020-07-17 19:07:47 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2020-07-17 19:07:47 +0000 |
commit | e082c89385d542a74b7e30a534d83297be1d9426 (patch) | |
tree | 1a492ccbcc3149860ae8ce9733f80509a4d80595 /contrib | |
parent | 08c24e2f886854e8eadb9a522a451fcc6a78480a (diff) | |
download | src-e082c89385d542a74b7e30a534d83297be1d9426.tar.gz src-e082c89385d542a74b7e30a534d83297be1d9426.zip |
Notes
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ipfilter/tools/ipfstat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/ipfilter/tools/ipfstat.c b/contrib/ipfilter/tools/ipfstat.c index 43878f44d246..1d40dc67b413 100644 --- a/contrib/ipfilter/tools/ipfstat.c +++ b/contrib/ipfilter/tools/ipfstat.c @@ -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); |