Date: Tue, 13 Jan 2009 07:58:57 +0000 (UTC) From: Maxim Konovalov <maxim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r187134 - head/usr.bin/netstat Message-ID: <200901130758.n0D7wvAK093947@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: maxim Date: Tue Jan 13 07:58:57 2009 New Revision: 187134 URL: http://svn.freebsd.org/changeset/base/187134 Log: o Respect -ss flags (suppress zero counters) for icmp6 "histogram of error messages" section. Submitted by: naddy MFC after: 1 week Modified: head/usr.bin/netstat/inet6.c Modified: head/usr.bin/netstat/inet6.c ============================================================================== --- head/usr.bin/netstat/inet6.c Tue Jan 13 07:12:32 2009 (r187133) +++ head/usr.bin/netstat/inet6.c Tue Jan 13 07:58:57 2009 (r187134) @@ -866,7 +866,8 @@ icmp6_stats(u_long off, const char *name #define p(f, m) if (icmp6stat.f || sflag <= 1) \ printf(m, (uintmax_t)icmp6stat.f, plural(icmp6stat.f)) -#define p_5(f, m) printf(m, (uintmax_t)icmp6stat.f) +#define p_5(f, m) if (icmp6stat.f || sflag <= 1) \ + printf(m, (uintmax_t)icmp6stat.f) p(icp6s_error, "\t%ju call%s to icmp6_error\n"); p(icp6s_canterror,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901130758.n0D7wvAK093947>