Lines Matching +full:client +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
147 # the MPTCP client and server
181 ./mptcp_connect -s MPTCP -w 300 -p $app_port -l $listen_addr > /dev/null 2>&1 &
185 # Run the client, transfer $file and stay connected to the server
188 ./mptcp_connect -s MPTCP -w 300 -m sendfile -p $app_port $connect_addr\
193 # Capture client/server attributes from MPTCP connection netlink events
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\
323 print_test "ADD_ADDR id:client+1 10.0.2.2 (ns2) => ns1, new port"
328 # Capture events on the network namespace running the client
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\
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"
410 # RM_ADDR from the client to server machine
412 ip netns exec "$ns2" ./pm_nl_ctl rem token "$client4_token" id\
414 print_test "RM_ADDR id:client ns2 => ns1"
418 # RM_ADDR from the client to server machine
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"
427 # RM_ADDR6 from the client to server machine
429 ip netns exec "$ns2" ./pm_nl_ctl rem token "$client6_token" id\
431 print_test "RM_ADDR6 id:client-1 ns2 => ns1"
435 # Capture events on the network namespace running the client
438 # RM_ADDR from the server to client machine
439 ip netns exec "$ns1" ./pm_nl_ctl rem token "$server4_token" id\
441 print_test "RM_ADDR id:server ns1 => ns2"
445 # RM_ADDR from the server to client machine
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"
454 # RM_ADDR6 from the server to client machine
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\
547 # CREATE_SUBFLOW from server to client machine
555 # Delete the listener from the client ns, if one was created
561 # DESTROY_SUBFLOW from server to client machine
569 # RM_ADDR from client to server machine
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\
585 # CREATE_SUBFLOW6 from server to client machine
594 # Delete the listener from the client ns, if one was created
599 # DESTROY_SUBFLOW6 from server to client machine
608 # RM_ADDR from client to server machine
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\
624 # CREATE_SUBFLOW from server to client machine
633 # Delete the listener from the client ns, if one was created
638 # DESTROY_SUBFLOW from server to client machine
646 # RM_ADDR from client to server machine
647 ip netns exec "$ns2" ./pm_nl_ctl rem id $client_addr_id token\
650 # Capture events on the network namespace running the client
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\
663 # CREATE_SUBFLOW from client to server machine
676 # DESTROY_SUBFLOW from client to server machine
684 # RM_ADDR from server to client machine
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\
700 # CREATE_SUBFLOW6 from client to server machine
715 # DESTROY_SUBFLOW6 from client to server machine
723 # RM_ADDR6 from server to client machine
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\
739 # CREATE_SUBFLOW from client to server machine
752 # DESTROY_SUBFLOW from client to server machine
760 # RM_ADDR from server to client machine
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"
784 # CREATE_SUBFLOW from client to server machine
798 # DESTROY_SUBFLOW from client to server machine
807 # RM_ADDR from server to client machine
808 ip netns exec "$ns1" ./pm_nl_ctl rem id $server_addr_id token\
819 # Send MP_PRIO signal from client to server machine
826 if [ -z "$count" ]; then
837 if [ -z "$count" ]; then
865 # Capture events on the network namespace running the client
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\
882 # CREATE_SUBFLOW from server to client machine
887 # Delete the listener from the client ns, if one was created
891 print_test "CLOSE_LISTENER 10.0.2.2 (client port)"
898 print_title "Will be using address IDs ${client_addr_id} (client) and ${server_addr_id} (server)"