Lines Matching +full:0 +full:- +full:23
2 # SPDX-License-Identifier: GPL-2.0
11 . "$(dirname "${0}")/mptcp_lib.sh"
35 server_evts_pid=0
36 client_evts_pid=0
37 client4_pid=0
38 server4_pid=0
39 client6_pid=0
40 server6_pid=0
45 client4_port=0;
46 client6_port=0;
50 client_addr_id=${RANDOM:0:2}
51 server_addr_id=${RANDOM:0:2}
55 ret=0
58 MPTCP_LIB_TEST_FORMAT="%02u %-68s"
88 if [ ${#} -gt 0 ]
112 rm -rf $file $client_evts $server_evts
124 if [ -f /proc/sys/net/mptcp/path_manager ]; then
125 ip netns exec "$ns1" sysctl -q net.mptcp.path_manager=userspace
126 pm_type="$(ip netns exec "$ns1" sysctl -n net.mptcp.pm_type)"
133 ip netns exec "$ns1" sysctl -q net.mptcp.path_manager=error 2>/dev/null
134 pm_type="$(ip netns exec "$ns1" sysctl -n net.mptcp.pm_type)"
141 ip netns exec "$ns1" sysctl -q net.mptcp.pm_type=0
142 pm_name="$(ip netns exec "$ns1" sysctl -n net.mptcp.path_manager)"
144 test_fail "unexpected path-manager: ${pm_name}"
151 ip netns exec "$i" sysctl -q net.mptcp.pm_type=1
160 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth2
161 ip -net "$ns1" addr add 10.0.2.1/24 dev ns1eth2
162 ip -net "$ns1" addr add dead:beef:1::1/64 dev ns1eth2 nodad
163 ip -net "$ns1" addr add dead:beef:2::1/64 dev ns1eth2 nodad
164 ip -net "$ns1" link set ns1eth2 up
166 ip -net "$ns2" addr add 10.0.1.2/24 dev ns2eth1
167 ip -net "$ns2" addr add 10.0.2.2/24 dev ns2eth1
168 ip -net "$ns2" addr add dead:beef:1::2/64 dev ns2eth1 nodad
169 ip -net "$ns2" addr add dead:beef:2::2/64 dev ns2eth1 nodad
170 ip -net "$ns2" link set ns2eth1 up
205 ip netns exec "$ns2" sysctl -q net.mptcp.allow_join_initial_addr_port=0
212 ./mptcp_connect -s MPTCP -w 300 -p $app_port -l $listen_addr > /dev/null 2>&1 &
219 ./mptcp_connect -s MPTCP -w 300 -m sendfile -p $app_port $connect_addr\
244 [ "${client_serverside:-0}" = 0 ] && [ "${server_serverside:-0}" = 1 ] &&
245 [ "${client_nojoin:-0}" = 0 ] && [ "${server_nojoin:-0}" = 1 ]
248 print_title "Connection info: ${client_addr}:${client_port} -> ${connect_addr}:${app_port}"
250 …ns (c:${client_token} - s:${server_token}), server (c:${client_serverside} - s:${server_serverside…
277 return 0
321 local invalid_token=$(( client4_token - 1))
420 local invalid_token=$(( client4_token - 1 ))
456 client_addr_id=$(( client_addr_id - 1 ))
459 print_test "RM_ADDR id:client-1 ns2 => ns1"
467 print_test "RM_ADDR6 id:client-1 ns2 => ns1"
483 server_addr_id=$(( server_addr_id - 1 ))
486 print_test "RM_ADDR id:server-1 ns1 => ns2"
494 print_test "RM_ADDR6 id:server-1 ns1 => ns2"
525 if [ "${e_dport}" -ge "${app4_port}" ] && [ "${e_dport}" -le "${app6_port}" ]; then
573 # Attempt to add a listener at 10.0.2.2:<subflow-port>
585 ip netns exec "$ns1" ./pm_nl_ctl csf lip 10.0.2.1 lid 23 rip 10.0.2.2\
589 "10.0.2.2" "$client4_port" "23" "$client_addr_id" "ns1" "ns2"
603 "10.0.2.2" "$client4_port" "23" "$client_addr_id" "ns1" "ns2"
610 # Attempt to add a listener at dead:beef:2::2:<subflow-port>
623 ip netns exec "$ns1" ./pm_nl_ctl csf lip dead:beef:2::1 lid 23 rip\
627 "dead:beef:2::1" "dead:beef:2::2" "$client6_port" "23"\
641 "dead:beef:2::1" "dead:beef:2::2" "$client6_port" "23"\
649 # Attempt to add a listener at 10.0.2.2:<new-port>
662 ip netns exec "$ns1" ./pm_nl_ctl csf lip 10.0.2.1 lid 23 rip 10.0.2.2 rport\
666 "10.0.2.1" "10.0.2.2" "$new4_port" "23"\
680 "10.0.2.2" "$new4_port" "23" "$client_addr_id" "ns1" "ns2"
689 # Attempt to add a listener at 10.0.2.1:<subflow-port>
701 ip netns exec "$ns2" ./pm_nl_ctl csf lip 10.0.2.2 lid 23 rip 10.0.2.1 rport\
705 "10.0.2.1" "$app4_port" "23" "$server_addr_id" "ns2" "ns1"
718 "10.0.2.1" "$app4_port" "23" "$server_addr_id" "ns2" "ns1"
725 # Attempt to add a listener at dead:beef:2::1:<subflow-port>
738 ip netns exec "$ns2" ./pm_nl_ctl csf lip dead:beef:2::2 lid 23 rip\
743 "dead:beef:2::1" "$app6_port" "23"\
757 "dead:beef:2::1" "$app6_port" "23" "$server_addr_id" "ns2" "ns1"
764 # Attempt to add a listener at 10.0.2.1:<new-port>
777 ip netns exec "$ns2" ./pm_nl_ctl csf lip 10.0.2.2 lid 23 rip 10.0.2.1 rport\
781 "10.0.2.2" "10.0.2.1" "$new4_port" "23" "$server_addr_id" "ns2" "ns1"
794 "10.0.2.1" "$new4_port" "23" "$server_addr_id" "ns2" "ns1"
805 # Attempt to add a listener at 10.0.2.1:<subflow-port>
822 ip netns exec "$ns2" ./pm_nl_ctl csf lip 10.0.2.2 lid 23 rip 10.0.2.1 rport\
826 "$AF_INET" "10.0.2.2" "10.0.2.1" "$app6_port" "23"\
840 "$AF_INET" "10.0.2.2" "10.0.2.1" "$app6_port" "23"\
862 if [ -z "$count" ]; then
873 if [ -z "$count" ]; then
904 # Attempt to add a listener at 10.0.2.2:<subflow-port>
919 ip netns exec $ns1 ./pm_nl_ctl csf lip 10.0.2.1 lid 23 rip 10.0.2.2\