diff options
author | bp <bp@FreeBSD.org> | 1999-10-18 05:45:05 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 1999-10-18 05:45:05 +0000 |
commit | c43de700de7ba1dc4a93b3ddd033dea8ca18bef3 (patch) | |
tree | 6c840c54791f4e1e98a93c2f782e6d10cb381db3 /usr.bin | |
parent | 00deed7effdb1c70ecfd6dd0e4941d2e7041141f (diff) | |
download | FreeBSD-src-c43de700de7ba1dc4a93b3ddd033dea8ca18bef3.zip FreeBSD-src-c43de700de7ba1dc4a93b3ddd033dea8ca18bef3.tar.gz |
Allow suppress printing of lines with zero counts
for an IPX address family.
PR: 14168
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/ipx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/netstat/ipx.c b/usr.bin/netstat/ipx.c index 3495ada..8f7c1ba 100644 --- a/usr.bin/netstat/ipx.c +++ b/usr.bin/netstat/ipx.c @@ -152,8 +152,10 @@ ipxprotopr(off, name) } } -#define ANY(x,y,z) (printf("\t%u %s%s%s\n",x,y,plural(x),z)) -#define ANYl(x,y,z) (printf("\t%lu %s%s%s\n",x,y,plural(x),z)) +#define ANY(x,y,z) \ + if (x || sflag <= 1) printf("\t%u %s%s%s\n", x, y, plural(x), z) +#define ANYl(x,y,z) \ + if (x || sflag <= 1) printf("\t%lu %s%s%s\n", x, y, plural(x), z) /* * Dump SPX statistics structure. |