Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109458413
D47805.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
D47805.diff
View Options
diff --git a/tests/sys/netpfil/pf/nat64.sh b/tests/sys/netpfil/pf/nat64.sh
--- a/tests/sys/netpfil/pf/nat64.sh
+++ b/tests/sys/netpfil/pf/nat64.sh
@@ -52,6 +52,7 @@
jexec rtr pfctl -e
pft_set_rules rtr \
+ "set reassemble yes" \
"set state-policy if-bound" \
"pass in on ${epair}b inet6 from any to 64:ff9b::/96 af-to inet from (${epair_link}a)"
}
@@ -82,6 +83,33 @@
pft_cleanup
}
+atf_test_case "fragmentation" "cleanup"
+fragmentation_head()
+{
+ atf_set descr 'Test fragmented packets'
+ atf_set require.user root
+}
+
+fragmentation_body()
+{
+ nat64_setup
+
+ atf_check -s exit:0 -o ignore \
+ ping6 -c 1 -s 1280 64:ff9b::192.0.2.2
+
+ atf_check -s exit:0 \
+ -o match:'3 packets transmitted, 3 packets received, 0.0% packet loss' \
+ ping6 -c 3 -s 2000 64:ff9b::192.0.2.2
+ atf_check -s exit:0 \
+ -o match:'3 packets transmitted, 3 packets received, 0.0% packet loss' \
+ ping6 -c 3 -s 10000 -b 20000 64:ff9b::192.0.2.2
+}
+
+fragmentation_cleanup()
+{
+ pft_cleanup
+}
+
atf_test_case "tcp" "cleanup"
tcp_head()
{
@@ -178,6 +206,7 @@
atf_init_test_cases()
{
atf_add_test_case "icmp_echo"
+ atf_add_test_case "fragmentation"
atf_add_test_case "tcp"
atf_add_test_case "udp"
atf_add_test_case "sctp"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 6, 8:27 AM (20 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14912900
Default Alt Text
D47805.diff (1 KB)
Attached To
Mode
D47805: pf tests: check packet reassembly with nat64
Attached
Detach File
Event Timeline
Log In to Comment