Page MenuHomeFreeBSD

D31744.diff
No OneTemporary

D31744.diff

diff --git a/tests/sys/netpfil/pf/ether.sh b/tests/sys/netpfil/pf/ether.sh
--- a/tests/sys/netpfil/pf/ether.sh
+++ b/tests/sys/netpfil/pf/ether.sh
@@ -75,6 +75,15 @@
pft_set_rules alcatraz \
"ether block on ${epair}a from ${epair_a_mac}"
atf_check -s exit:0 -o ignore ping -c 1 -t 1 192.0.2.2
+
+ # Test negation
+ pft_set_rules alcatraz \
+ "ether block in on ${epair}b from ! ${epair_a_mac}"
+ atf_check -s exit:0 -o ignore ping -c 1 -t 1 192.0.2.2
+
+ pft_set_rules alcatraz \
+ "ether block out on ${epair}b to ! ${epair_a_mac}"
+ atf_check -s exit:0 -o ignore ping -c 1 -t 1 192.0.2.2
}
mac_cleanup()

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 15, 8:59 PM (12 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16663085
Default Alt Text
D31744.diff (620 B)

Event Timeline