Lines Matching +full:port +full:- +full:id

2 # SPDX-License-Identifier: GPL-2.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…
297 local id
308 id=$(mptcp_lib_evts_get_info rem_id "$evt" $e_type)
310 check_expected "type" "token" "addr" "dport" "id"
321 local invalid_token=$(( client4_token - 1))
322 ip netns exec "$ns2" ./pm_nl_ctl ann 10.0.2.2 token $invalid_token id\
335 # ADD_ADDR from the client to server machine reusing the subflow port
338 ./pm_nl_ctl ann 10.0.2.2 token "$client4_token" id $client_addr_id dev\
340 print_test "ADD_ADDR id:client 10.0.2.2 (ns2) => ns1, reuse port"
345 # ADD_ADDR6 from the client to server machine reusing the subflow port
348 dead:beef:2::2 token "$client6_token" id $client_addr_id dev ns2eth1
349 print_test "ADD_ADDR6 id:client dead:beef:2::2 (ns2) => ns1, reuse port"
354 # ADD_ADDR from the client to server machine using a new port
357 ip netns exec "$ns2" ./pm_nl_ctl ann 10.0.2.2 token "$client4_token" id\
358 $client_addr_id dev ns2eth1 port $new4_port
359 print_test "ADD_ADDR id:client+1 10.0.2.2 (ns2) => ns1, new port"
367 # ADD_ADDR from the server to client machine reusing the subflow port
368 ip netns exec "$ns1" ./pm_nl_ctl ann 10.0.2.1 token "$server4_token" id\
370 print_test "ADD_ADDR id:server 10.0.2.1 (ns1) => ns2, reuse port"
375 # ADD_ADDR6 from the server to client machine reusing the subflow port
377 ip netns exec "$ns1" ./pm_nl_ctl ann dead:beef:2::1 token "$server6_token" id\
379 print_test "ADD_ADDR6 id:server dead:beef:2::1 (ns1) => ns2, reuse port"
384 # ADD_ADDR from the server to client machine using a new port
387 ip netns exec "$ns1" ./pm_nl_ctl ann 10.0.2.1 token "$server4_token" id\
388 $server_addr_id dev ns1eth2 port $new4_port
389 print_test "ADD_ADDR id:server+1 10.0.2.1 (ns1) => ns2, new port"
403 local id
407 id=$(mptcp_lib_evts_get_info rem_id "$evt" $e_type)
409 check_expected "type" "token" "id"
420 local invalid_token=$(( client4_token - 1 ))
421 ip netns exec "$ns2" ./pm_nl_ctl rem token $invalid_token id\
423 print_test "RM_ADDR id:client ns2 => ns1, invalid token"
433 # RM_ADDR using an invalid addr id should result in no action
435 ip netns exec "$ns2" ./pm_nl_ctl rem token "$client4_token" id\
437 print_test "RM_ADDR id:client+1 ns2 => ns1, invalid id"
448 ip netns exec "$ns2" ./pm_nl_ctl rem token "$client4_token" id\
450 print_test "RM_ADDR id:client ns2 => ns1"
456 client_addr_id=$(( client_addr_id - 1 ))
457 ip netns exec "$ns2" ./pm_nl_ctl rem token "$client4_token" id\
459 print_test "RM_ADDR id:client-1 ns2 => ns1"
465 ip netns exec "$ns2" ./pm_nl_ctl rem token "$client6_token" id\
467 print_test "RM_ADDR6 id:client-1 ns2 => ns1"
475 ip netns exec "$ns1" ./pm_nl_ctl rem token "$server4_token" id\
477 print_test "RM_ADDR id:server ns1 => ns2"
483 server_addr_id=$(( server_addr_id - 1 ))
484 ip netns exec "$ns1" ./pm_nl_ctl rem token "$server4_token" id\
486 print_test "RM_ADDR id:server-1 ns1 => ns2"
492 ip netns exec "$ns1" ./pm_nl_ctl rem token "$server6_token" id\
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>
578 # ADD_ADDR from client to server machine reusing the subflow port
579 ip netns exec "$ns2" ./pm_nl_ctl ann 10.0.2.2 token "$client4_token" id\
606 ip netns exec "$ns2" ./pm_nl_ctl rem id $client_addr_id token\
610 # Attempt to add a listener at dead:beef:2::2:<subflow-port>
615 # ADD_ADDR6 from client to server machine reusing the subflow port
617 ip netns exec "$ns2" ./pm_nl_ctl ann dead:beef:2::2 token "$client6_token" id\
645 ip netns exec "$ns2" ./pm_nl_ctl rem id $client_addr_id token\
649 # Attempt to add a listener at 10.0.2.2:<new-port>
654 # ADD_ADDR from client to server machine using a new port
656 ip netns exec "$ns2" ./pm_nl_ctl ann 10.0.2.2 token "$client4_token" id\
657 $client_addr_id port $new4_port
683 ip netns exec "$ns2" ./pm_nl_ctl rem id $client_addr_id token\
689 # Attempt to add a listener at 10.0.2.1:<subflow-port>
694 # ADD_ADDR from server to client machine reusing the subflow port
695 ip netns exec "$ns1" ./pm_nl_ctl ann 10.0.2.1 token "$server4_token" id\
721 ip netns exec "$ns1" ./pm_nl_ctl rem id $server_addr_id token\
725 # Attempt to add a listener at dead:beef:2::1:<subflow-port>
730 # ADD_ADDR6 from server to client machine reusing the subflow port
732 ip netns exec "$ns1" ./pm_nl_ctl ann dead:beef:2::1 token "$server6_token" id\
760 ip netns exec "$ns1" ./pm_nl_ctl rem id $server_addr_id token\
764 # Attempt to add a listener at 10.0.2.1:<new-port>
769 # ADD_ADDR from server to client machine using a new port
771 ip netns exec "$ns1" ./pm_nl_ctl ann 10.0.2.1 token "$server4_token" id\
772 $server_addr_id port $new4_port
797 ip netns exec "$ns1" ./pm_nl_ctl rem id $server_addr_id token\
805 # Attempt to add a listener at 10.0.2.1:<subflow-port>
810 # ADD_ADDR4 from server to client machine reusing the subflow port on
813 ip netns exec "$ns1" ./pm_nl_ctl ann 10.0.2.1 token "$server6_token" id\
815 print_test "ADD_ADDR4 id:server 10.0.2.1 (ns1) => ns2, reuse port"
844 ip netns exec "$ns1" ./pm_nl_ctl rem id $server_addr_id token\
856 …ip netns exec "$ns2" ./pm_nl_ctl set 10.0.1.2 port "$client4_port" flags backup token "$client4_to…
862 if [ -z "$count" ]; then
873 if [ -z "$count" ]; then
904 # Attempt to add a listener at 10.0.2.2:<subflow-port>
910 print_test "CREATE_LISTENER 10.0.2.2 (client port)"
913 # ADD_ADDR from client to server machine reusing the subflow port
914 ip netns exec $ns2 ./pm_nl_ctl ann 10.0.2.2 token $client4_token id\
927 print_test "CLOSE_LISTENER 10.0.2.2 (client port)"