aboutsummaryrefslogtreecommitdiff
path: root/sysutils/pfstat/files
diff options
context:
space:
mode:
authorMax Laier <mlaier@FreeBSD.org>2006-12-16 01:58:38 +0000
committerMax Laier <mlaier@FreeBSD.org>2006-12-16 01:58:38 +0000
commitdc55152eac2d55dc5fe7909a482a906ac38b6ef1 (patch)
tree072fe03d383db78fbed785cd2c4f054ae0ea4f9a /sysutils/pfstat/files
parenta72d2dc92ac7272c971ed937ee158bdb7065477c (diff)
Notes
Diffstat (limited to 'sysutils/pfstat/files')
-rw-r--r--sysutils/pfstat/files/patch-pf.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/sysutils/pfstat/files/patch-pf.c b/sysutils/pfstat/files/patch-pf.c
index 71e897e8d49a..92abe2b69e40 100644
--- a/sysutils/pfstat/files/patch-pf.c
+++ b/sysutils/pfstat/files/patch-pf.c
@@ -1,6 +1,19 @@
--- pf.c.orig Thu May 11 23:41:07 2006
-+++ pf.c Fri Jul 7 21:49:20 2006
-@@ -144,23 +144,24 @@
++++ pf.c Mon Dec 11 21:08:31 2006
+@@ -67,10 +67,8 @@
+
+ /* first, find out how many queues there are */
+ memset(&pa, 0, sizeof(pa));
+- if (ioctl(fd, DIOCGETALTQS, &pa)) {
+- fprintf(stderr, "ioctl: DIOCGETALTQS: %s\n", strerror(errno));
+- return (1);
+- }
++ if (ioctl(fd, DIOCGETALTQS, &pa))
++ return (0);
+ mnr = pa.nr;
+
+ /* fetch each of those queues */
+@@ -144,23 +142,24 @@
query_ifaces(int fd, void (*cb)(int, const char *, int, double))
{
struct pfioc_iface io;