mirror of
https://github.com/lgcosta/pf-linux-port.git
synced 2026-11-15 10:04:45 -03:00
tests: soak gate via uploaded helper (quoting), 04/05 assertions fixed (pf interface name vs OS device)
This commit is contained in:
1 parent
3aa0c2d0d0
commit
18c0a69f74
4 files changed
+45
-26
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# Helper executed ON pf0 by 14-soak.sh (uploaded with pfput to avoid quoting
|
||||
# hell through two ssh hops).
|
||||
# $1 = "slab" | "dmesg" | "states"
|
||||
case "${1:-}" in
|
||||
slab)
|
||||
grep -E '^(pf|pfk)' /proc/slabinfo | tr -s ' ' | cut -d' ' -f1,3 | sort
|
||||
;;
|
||||
dmesg)
|
||||
dmesg | grep -E 'BUG:|WARNING:|Oops|general protection|kernel BUG' || true
|
||||
;;
|
||||
states)
|
||||
/opt/pf/pfctl -s states 2>/dev/null | grep -c 'icmp' || true
|
||||
;;
|
||||
esac
|
||||
Reference in new issue
Block a user