Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174559082
D31744.id103387.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
620 B
Referenced Files
None
Subscribers
None
D31744.id103387.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 5, 4:06 AM (17 m, 5 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40226368
Default Alt Text
D31744.id103387.diff (620 B)
Attached To
Mode
D31744: pf tests: Test MAC address negation
Attached
Detach File
Event Timeline
Log In to Comment