diff options
author | glebius <glebius@FreeBSD.org> | 2012-04-04 08:30:32 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-04-04 08:30:32 +0000 |
commit | 9c9bd90f632e127fc233408c11d58e8f1686f05f (patch) | |
tree | 929d741f765e8e97a5816e44016a7c9dbc2bef72 /usr.bin/netstat | |
parent | 307ef13f94d231bebdcdc61d234470e47ffec9b0 (diff) | |
download | FreeBSD-src-9c9bd90f632e127fc233408c11d58e8f1686f05f.zip FreeBSD-src-9c9bd90f632e127fc233408c11d58e8f1686f05f.tar.gz |
With pf 4.5 import the name of pfsync stats sysctl has changed, thus
'netstat -sp pfsync' got broken. Fix this.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r-- | usr.bin/netstat/if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index 7629dd4..c08fbf0 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -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 |