Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2012 08:30:32 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r233863 - head/usr.bin/netstat
Message-ID:  <201204040830.q348UWlj093111@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Wed Apr  4 08:30:32 2012
New Revision: 233863
URL: http://svn.freebsd.org/changeset/base/233863

Log:
  With pf 4.5 import the name of pfsync stats sysctl has changed, thus
  'netstat -sp pfsync' got broken. Fix this.

Modified:
  head/usr.bin/netstat/if.c

Modified: head/usr.bin/netstat/if.c
==============================================================================
--- head/usr.bin/netstat/if.c	Wed Apr  4 08:19:13 2012	(r233862)
+++ head/usr.bin/netstat/if.c	Wed Apr  4 08:30:32 2012	(r233863)
@@ -93,10 +93,10 @@ pfsync_stats(u_long off, const char *nam
 	if (live) {
 		if (zflag)
 			memset(&zerostat, 0, len);
-		if (sysctlbyname("net.inet.pfsync.stats", &pfsyncstat, &len,
+		if (sysctlbyname("net.pfsync.stats", &pfsyncstat, &len,
 		    zflag ? &zerostat : NULL, zflag ? len : 0) < 0) {
 			if (errno != ENOENT)
-				warn("sysctl: net.inet.pfsync.stats");
+				warn("sysctl: net.pfsync.stats");
 			return;
 		}
 	} else



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