aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2022-01-18 08:41:30 +0000
committerKristof Provost <kp@FreeBSD.org>2022-03-02 16:00:07 +0000
commitfdadb006828680427e13436d3d219a73464953ed (patch)
tree5f1c569a102a1663bc20e07e36c8ff61c8951e21
parent6ea1c3cfc89905b0f703b5d549b481fa0718a1a7 (diff)
downloadsrc-fdadb006828680427e13436d3d219a73464953ed.tar.gz
src-fdadb006828680427e13436d3d219a73464953ed.zip
pf tests: Ensure 'pfctl -F ethernet' works
Sponsored by: Rubicon Communications, LLC ("Netgate")
-rw-r--r--tests/sys/netpfil/pf/ether.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/sys/netpfil/pf/ether.sh b/tests/sys/netpfil/pf/ether.sh
index 77245666a86e..adcd8838f357 100644
--- a/tests/sys/netpfil/pf/ether.sh
+++ b/tests/sys/netpfil/pf/ether.sh
@@ -99,6 +99,10 @@ mac_body()
pft_set_rules alcatraz \
"ether block out on ${epair}b to { ! 00:01:02:03:04:05 }"
atf_check -s exit:2 -o ignore ping -c 1 -t 1 192.0.2.2
+
+ # Check '-F ethernet' works
+ jexec alcatraz pfctl -F ethernet
+ atf_check -s exit:0 -o ignore ping -c 1 -t 1 192.0.2.2
}
mac_cleanup()