Fix breakage from recent pf changes, macros PF_IN/PF_OUT changed, and they

were (ab)used as indices for the statistics counter arrays. Use literal
indices instead.
This commit is contained in:
dhartmei 2003-01-24 20:15:41 +00:00
parent b9ef3f547b
commit 1b0eead24b
3 changed files with 38 additions and 5 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.3 2003/01/24 17:59:45 dhartmei Exp $
# $OpenBSD: Makefile,v 1.4 2003/01/24 20:15:41 dhartmei Exp $
COMMENT= "packet filter statistics visualization"
DISTNAME= pfstat-1.2
DISTNAME= pfstat-1.3
CATEGORIES= net
MASTER_SITES= http://www.benzedrine.cx/

View File

@ -1,3 +1,3 @@
MD5 (pfstat-1.2.tar.gz) = a2dc3d839d4e6a0cd92dfa8a981520bc
RMD160 (pfstat-1.2.tar.gz) = b3d2e77012f2abc59bf9c3e089ab8faf5f0c3ff1
SHA1 (pfstat-1.2.tar.gz) = d7a17d49e3e25502dbb6386844486cb42aa3fa59
MD5 (pfstat-1.3.tar.gz) = adbbeea26001a9e535cdd643d27d050d
RMD160 (pfstat-1.3.tar.gz) = 88dfb6e5c0be9c902a73e7602c8f92bc6a52a14f
SHA1 (pfstat-1.3.tar.gz) = 036f8ea37dae83d74ea41da5473cdd73733a562f

View File

@ -0,0 +1,33 @@
--- symon/sm_pf.c.orig Fri Jan 24 20:44:10 2003
+++ symon/sm_pf.c Fri Jan 24 20:44:44 2003
@@ -92,18 +92,18 @@
n = s.states;
return snpack(symon_buf, maxlen, arg, MT_PF,
- s.bcounters[0][PF_IN],
- s.bcounters[0][PF_OUT],
- s.bcounters[1][PF_IN],
- s.bcounters[1][PF_OUT],
- s.pcounters[0][PF_IN][PF_PASS],
- s.pcounters[0][PF_IN][PF_DROP],
- s.pcounters[0][PF_OUT][PF_PASS],
- s.pcounters[0][PF_OUT][PF_DROP],
- s.pcounters[1][PF_IN][PF_PASS],
- s.pcounters[1][PF_IN][PF_DROP],
- s.pcounters[1][PF_OUT][PF_PASS],
- s.pcounters[1][PF_OUT][PF_DROP],
+ s.bcounters[0][0],
+ s.bcounters[0][1],
+ s.bcounters[1][0],
+ s.bcounters[1][1],
+ s.pcounters[0][0][PF_PASS],
+ s.pcounters[0][0][PF_DROP],
+ s.pcounters[0][1][PF_PASS],
+ s.pcounters[0][1][PF_DROP],
+ s.pcounters[1][0][PF_PASS],
+ s.pcounters[1][0][PF_DROP],
+ s.pcounters[1][1][PF_PASS],
+ s.pcounters[1][1][PF_DROP],
n,
s.fcounters[0],
s.fcounters[1],