mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Make pfstat work on non-ALTQ kernels. Patch submitted upstream, but for now
patch around. Also fix a typo and email markup, both spotted by Pav. Reported by: Lars Wittebrood Approved by: pav
This commit is contained in:
parent
a72d2dc92a
commit
dc55152eac
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=179886
@ -7,13 +7,13 @@
|
||||
|
||||
PORTNAME= pfstat
|
||||
PORTVERSION= 2.2
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= sysutils net
|
||||
MASTER_SITES= http://www.benzedrine.cx/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= mlaier@freebsd.org
|
||||
COMMENT= Utility to render grafical statistics for pf
|
||||
MAINTAINER= mlaier@FreeBSD.org
|
||||
COMMENT= Utility to render graphical statistics for pf
|
||||
|
||||
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user