With pf 4.5 import the name of pfsync stats sysctl has changed, thus

'netstat -sp pfsync' got broken. Fix this.
This commit is contained in:
Gleb Smirnoff 2012-04-04 08:30:32 +00:00
parent 60a305887a
commit 16410af7fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=233863

View File

@ -93,10 +93,10 @@ pfsync_stats(u_long off, const char *name, int af1 __unused, int proto __unused)
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