diff options
author | 2007-09-19 12:51:49 +0000 | |
---|---|---|
committer | 2007-09-19 12:51:49 +0000 | |
commit | 7dec238a2bce394a30089f74865389a9fb149eec (patch) | |
tree | acd8dabdb9690a8efc3695cbd872989d15dac7d8 | |
parent | Remove "localhost" from the table test, since the result is dependent (diff) | |
download | wireguard-openbsd-7dec238a2bce394a30089f74865389a9fb149eec.tar.xz wireguard-openbsd-7dec238a2bce394a30089f74865389a9fb149eec.zip |
This got broken when a second pool (pfrkentry2) was added
for source-tracking support about 3 years ago.
OK henning
-rw-r--r-- | regress/sbin/pfctl/pfr.exec | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/sbin/pfctl/pfr.exec b/regress/sbin/pfctl/pfr.exec index 99961814461..23429fa8ec6 100644 --- a/regress/sbin/pfctl/pfr.exec +++ b/regress/sbin/pfctl/pfr.exec @@ -6,8 +6,8 @@ pfctl -a $A -Fr 2>/dev/null pfctl -a $A -Fn 2>/dev/null KT_A=`vmstat -m | awk '/pfrktable/{print $3}'` KT_R=`vmstat -m | awk '/pfrktable/{print $5}'` -KE_A=`vmstat -m | awk '/pfrkentry/{print $3}'` -KE_R=`vmstat -m | awk '/pfrkentry/{print $5}'` +KE_A=`vmstat -m | awk '/pfrkentry /{print $3}'` +KE_R=`vmstat -m | awk '/pfrkentry /{print $5}'` echo "# create" echo "table <regress> persist" | pfctl -a $A -Tl -f - 2>&1 || exit 1 for LINE in `sed -e "s/ /_/g" $1`; do @@ -81,8 +81,8 @@ pfctl -a $A -Fn 2>&1 let KT_A=`vmstat -m | awk '/pfrktable/{print $3}'`-$KT_A let KT_R=`vmstat -m | awk '/pfrktable/{print $5}'`-$KT_R let KT_L=$KT_A-$KT_R -let KE_A=`vmstat -m | awk '/pfrkentry/{print $3}'`-$KE_A -let KE_R=`vmstat -m | awk '/pfrkentry/{print $5}'`-$KE_R +let KE_A=`vmstat -m | awk '/pfrkentry /{print $3}'`-$KE_A +let KE_R=`vmstat -m | awk '/pfrkentry /{print $5}'`-$KE_R let KE_L=$KE_A-$KE_R echo "ktable: $KT_A allocated, $KT_R released, $KT_L leaked." echo "kentry: $KE_A allocated, $KE_R released, $KE_L leaked." |