Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107519245
D29989.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D29989.diff
View Options
diff --git a/tests/sys/netpfil/pf/table.sh b/tests/sys/netpfil/pf/table.sh
--- a/tests/sys/netpfil/pf/table.sh
+++ b/tests/sys/netpfil/pf/table.sh
@@ -146,9 +146,47 @@
pft_cleanup
}
+atf_test_case "automatic" "cleanup"
+automatic_head()
+{
+ atf_set descr "Test automatic - optimizer generated - tables"
+ atf_set require.user root
+}
+
+automatic_body()
+{
+ pft_init
+
+ epair=$(vnet_mkepair)
+ ifconfig ${epair}a 192.0.2.1/24 up
+
+ vnet_mkjail alcatraz ${epair}b
+ jexec alcatraz ifconfig ${epair}b 192.0.2.2/24 up
+ jexec alcatraz pfctl -e
+
+ pft_set_rules alcatraz \
+ "block in" \
+ "pass in proto icmp from 192.0.2.1" \
+ "pass in proto icmp from 192.0.2.3" \
+ "pass in proto icmp from 192.0.2.4" \
+ "pass in proto icmp from 192.0.2.5" \
+ "pass in proto icmp from 192.0.2.6" \
+ "pass in proto icmp from 192.0.2.7" \
+ "pass in proto icmp from 192.0.2.8" \
+ "pass in proto icmp from 192.0.2.9"
+
+ atf_check -s exit:0 -o ignore ping -c 1 192.0.2.2
+}
+
+automatic_cleanup()
+{
+ pft_cleanup
+}
+
atf_init_test_cases()
{
atf_add_test_case "v4_counters"
atf_add_test_case "v6_counters"
atf_add_test_case "pr251414"
+ atf_add_test_case "automatic"
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 16, 8:46 AM (19 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15822938
Default Alt Text
D29989.diff (1 KB)
Attached To
Mode
D29989: pf tests: Test automatically generated tables
Attached
Detach File
Event Timeline
Log In to Comment