Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jan 2009 09:39:11 +0000 (UTC)
From:      Maxim Konovalov <maxim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r187584 - stable/7/usr.bin/netstat
Message-ID:  <200901220939.n0M9dBqx006565@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: maxim
Date: Thu Jan 22 09:39:11 2009
New Revision: 187584
URL: http://svn.freebsd.org/changeset/base/187584

Log:
  MFC r187134: respect -ss flags for icmp6 "histogram of error messages"
  section.

Modified:
  stable/7/usr.bin/netstat/inet6.c

Modified: stable/7/usr.bin/netstat/inet6.c
==============================================================================
--- stable/7/usr.bin/netstat/inet6.c	Thu Jan 22 08:29:39 2009	(r187583)
+++ stable/7/usr.bin/netstat/inet6.c	Thu Jan 22 09:39:11 2009	(r187584)
@@ -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?200901220939.n0M9dBqx006565>