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
122 ip netns exec "$i" sysctl -q net.mptcp.pm_type=1
131 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth2
132 ip -net "$ns1" addr add 10.0.2.1/24 dev ns1eth2
133 ip -net "$ns1" addr add dead:beef:1::1/64 dev ns1eth2 nodad
134 ip -net "$ns1" addr add dead:beef:2::1/64 dev ns1eth2 nodad
135 ip -net "$ns1" link set ns1eth2 up
137 ip -net "$ns2" addr add 10.0.1.2/24 dev ns2eth1
138 ip -net "$ns2" addr add 10.0.2.2/24 dev ns2eth1
139 ip -net "$ns2" addr add dead:beef:1::2/64 dev ns2eth1 nodad
140 ip -net "$ns2" addr add dead:beef:2::2/64 dev ns2eth1 nodad
141 ip -net "$ns2" link set ns2eth1 up
181 ./mptcp_connect -s MPTCP -w 300 -p $app_port -l $listen_addr > /dev/null 2>&1 &
188 ./mptcp_connect -s MPTCP -w 300 -m sendfile -p $app_port $connect_addr\
212 print_title "Connection info: ${client_addr}:${client_port} -> ${connect_addr}:${app_port}"
214 …test_fail "Expected tokens (c:${client_token} - s:${server_token}) and server (c:${client_serversi…
261 local id
272 id=$(mptcp_lib_evts_get_info rem_id "$evt" $e_type)
274 check_expected "type" "token" "addr" "dport" "id"
285 local invalid_token=$(( client4_token - 1))
286 ip netns exec "$ns2" ./pm_nl_ctl ann 10.0.2.2 token $invalid_token id\
299 # ADD_ADDR from the client to server machine reusing the subflow port
302 ./pm_nl_ctl ann 10.0.2.2 token "$client4_token" id $client_addr_id dev\
304 print_test "ADD_ADDR id:client 10.0.2.2 (ns2) => ns1, reuse port"
309 # ADD_ADDR6 from the client to server machine reusing the subflow port
312 dead:beef:2::2 token "$client6_token" id $client_addr_id dev ns2eth1
313 print_test "ADD_ADDR6 id:client dead:beef:2::2 (ns2) => ns1, reuse port"
318 # ADD_ADDR from the client to server machine using a new port
321 ip netns exec "$ns2" ./pm_nl_ctl ann 10.0.2.2 token "$client4_token" id\
322 $client_addr_id dev ns2eth1 port $new4_port
323 print_test "ADD_ADDR id:client+1 10.0.2.2 (ns2) => ns1, new port"
331 # ADD_ADDR from the server to client machine reusing the subflow port
332 ip netns exec "$ns1" ./pm_nl_ctl ann 10.0.2.1 token "$server4_token" id\
334 print_test "ADD_ADDR id:server 10.0.2.1 (ns1) => ns2, reuse port"
339 # ADD_ADDR6 from the server to client machine reusing the subflow port
341 ip netns exec "$ns1" ./pm_nl_ctl ann dead:beef:2::1 token "$server6_token" id\
343 print_test "ADD_ADDR6 id:server dead:beef:2::1 (ns1) => ns2, reuse port"
348 # ADD_ADDR from the server to client machine using a new port
351 ip netns exec "$ns1" ./pm_nl_ctl ann 10.0.2.1 token "$server4_token" id\
352 $server_addr_id dev ns1eth2 port $new4_port
353 print_test "ADD_ADDR id:server+1 10.0.2.1 (ns1) => ns2, new port"
367 local id
371 id=$(mptcp_lib_evts_get_info rem_id "$evt" $e_type)
373 check_expected "type" "token" "id"
384 local invalid_token=$(( client4_token - 1 ))
385 ip netns exec "$ns2" ./pm_nl_ctl rem token $invalid_token id\
387 print_test "RM_ADDR id:client ns2 => ns1, invalid token"
397 # RM_ADDR using an invalid addr id should result in no action
399 ip netns exec "$ns2" ./pm_nl_ctl rem token "$client4_token" id\
401 print_test "RM_ADDR id:client+1 ns2 => ns1, invalid id"
412 ip netns exec "$ns2" ./pm_nl_ctl rem token "$client4_token" id\
414 print_test "RM_ADDR id:client ns2 => ns1"
420 client_addr_id=$(( client_addr_id - 1 ))
421 ip netns exec "$ns2" ./pm_nl_ctl rem token "$client4_token" id\
423 print_test "RM_ADDR id:client-1 ns2 => ns1"
429 ip netns exec "$ns2" ./pm_nl_ctl rem token "$client6_token" id\
431 print_test "RM_ADDR6 id:client-1 ns2 => ns1"
439 ip netns exec "$ns1" ./pm_nl_ctl rem token "$server4_token" id\
441 print_test "RM_ADDR id:server ns1 => ns2"
447 server_addr_id=$(( server_addr_id - 1 ))
448 ip netns exec "$ns1" ./pm_nl_ctl rem token "$server4_token" id\
450 print_test "RM_ADDR id:server-1 ns1 => ns2"
456 ip netns exec "$ns1" ./pm_nl_ctl rem token "$server6_token" id\
458 print_test "RM_ADDR6 id:server-1 ns1 => ns2"
489 if [ "${e_dport}" -ge "${app4_port}" ] && [ "${e_dport}" -le "${app6_port}" ]; then
537 # Attempt to add a listener at 10.0.2.2:<subflow-port>
542 # ADD_ADDR from client to server machine reusing the subflow port
543 ip netns exec "$ns2" ./pm_nl_ctl ann 10.0.2.2 token "$client4_token" id\
570 ip netns exec "$ns2" ./pm_nl_ctl rem id $client_addr_id token\
574 # Attempt to add a listener at dead:beef:2::2:<subflow-port>
579 # ADD_ADDR6 from client to server machine reusing the subflow port
581 ip netns exec "$ns2" ./pm_nl_ctl ann dead:beef:2::2 token "$client6_token" id\
609 ip netns exec "$ns2" ./pm_nl_ctl rem id $client_addr_id token\
613 # Attempt to add a listener at 10.0.2.2:<new-port>
618 # ADD_ADDR from client to server machine using a new port
620 ip netns exec "$ns2" ./pm_nl_ctl ann 10.0.2.2 token "$client4_token" id\
621 $client_addr_id port $new4_port
647 ip netns exec "$ns2" ./pm_nl_ctl rem id $client_addr_id token\
653 # Attempt to add a listener at 10.0.2.1:<subflow-port>
658 # ADD_ADDR from server to client machine reusing the subflow port
659 ip netns exec "$ns1" ./pm_nl_ctl ann 10.0.2.1 token "$server4_token" id\
685 ip netns exec "$ns1" ./pm_nl_ctl rem id $server_addr_id token\
689 # Attempt to add a listener at dead:beef:2::1:<subflow-port>
694 # ADD_ADDR6 from server to client machine reusing the subflow port
696 ip netns exec "$ns1" ./pm_nl_ctl ann dead:beef:2::1 token "$server6_token" id\
724 ip netns exec "$ns1" ./pm_nl_ctl rem id $server_addr_id token\
728 # Attempt to add a listener at 10.0.2.1:<new-port>
733 # ADD_ADDR from server to client machine using a new port
735 ip netns exec "$ns1" ./pm_nl_ctl ann 10.0.2.1 token "$server4_token" id\
736 $server_addr_id port $new4_port
761 ip netns exec "$ns1" ./pm_nl_ctl rem id $server_addr_id token\
769 # Attempt to add a listener at 10.0.2.1:<subflow-port>
774 # ADD_ADDR4 from server to client machine reusing the subflow port on
777 ip netns exec "$ns1" ./pm_nl_ctl ann 10.0.2.1 token "$server6_token" id\
779 print_test "ADD_ADDR4 id:server 10.0.2.1 (ns1) => ns2, reuse port"
808 ip netns exec "$ns1" ./pm_nl_ctl rem id $server_addr_id token\
820 …ip netns exec "$ns2" ./pm_nl_ctl set 10.0.1.2 port "$client4_port" flags backup token "$client4_to…
826 if [ -z "$count" ]; then
837 if [ -z "$count" ]; then
868 # Attempt to add a listener at 10.0.2.2:<subflow-port>
874 print_test "CREATE_LISTENER 10.0.2.2 (client port)"
877 # ADD_ADDR from client to server machine reusing the subflow port
878 ip netns exec $ns2 ./pm_nl_ctl ann 10.0.2.2 token $client4_token id\
891 print_test "CLOSE_LISTENER 10.0.2.2 (client port)"