File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
tools/testing/selftests/net/mptcp Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -3538,6 +3538,32 @@ userspace_tests()
3538
3538
kill_events_pids
3539
3539
wait $tests_pid
3540
3540
fi
3541
+
3542
+ # userspace pm send RM_ADDR for ID 0
3543
+ if reset_with_events " userspace pm send RM_ADDR for ID 0" &&
3544
+ continue_if mptcp_lib_has_file ' /proc/sys/net/mptcp/pm_type' ; then
3545
+ set_userspace_pm $ns1
3546
+ pm_nl_set_limits $ns2 1 1
3547
+ speed=5 \
3548
+ run_tests $ns1 $ns2 10.0.1.1 &
3549
+ local tests_pid=$!
3550
+ wait_mpj $ns1
3551
+ userspace_pm_add_addr $ns1 10.0.2.1 10
3552
+ chk_join_nr 1 1 1
3553
+ chk_add_nr 1 1
3554
+ chk_mptcp_info subflows 1 subflows 1
3555
+ chk_subflows_total 2 2
3556
+ chk_mptcp_info add_addr_signal 1 add_addr_accepted 1
3557
+ userspace_pm_rm_addr $ns1 0
3558
+ # we don't look at the counter linked to the subflows that
3559
+ # have been removed but to the one linked to the RM_ADDR
3560
+ chk_rm_nr 1 0 invert
3561
+ chk_rst_nr 0 0 invert
3562
+ chk_mptcp_info subflows 1 subflows 1
3563
+ chk_subflows_total 1 1
3564
+ kill_events_pids
3565
+ wait $tests_pid
3566
+ fi
3541
3567
}
3542
3568
3543
3569
endpoint_tests ()
You can’t perform that action at this time.
0 commit comments