Lines Matching full:then
103 if $checksum; then
159 if ! ip -Version &> /dev/null; then
164 if ! ss -h | grep -q MPTCP; then
170 if iptables-legacy -V &> /dev/null; then
173 elif ! iptables -V &> /dev/null; then
176 elif ! ip6tables -V &> /dev/null; then
224 # It can be empty, no need to print anything then
261 if ! "${@}"; then
269 if [ "${#only_tests_ids[@]}" -eq 0 ] && [ "${#only_tests_names[@]}" -eq 0 ]; then
275 if [ "${TEST_COUNT}" -eq "${i}" ]; then
280 if [ "${TEST_NAME}" = "${i}" ]; then
290 if [ ${last_test_failed} -eq 1 ]; then
292 elif [ ${last_test_skipped} -eq 1 ]; then
294 elif [ ${last_test_ignored} -ne 1 ]; then
312 if skip_test; then
319 if [ "${init}" != "1" ]; then
337 if ! nstat -asz "${counter}" | grep -wq "${counter}"; then
363 if [ $ip -eq 6 ]; then
373 -j DROP; then
429 if [ $ip -eq 6 ]; then
462 if [ ${rc} -eq ${ksft_skip} ]; then
495 -j "${target}"; then
509 if [ ${last_test_failed} -eq 0 ]; then
541 if [ -n "$bytes" ]; then
545 if [ $out_size -ne $bytes ]; then
560 if [ $check_invert -eq 0 ] || [ $sum -ne $((0xff)) ]; then
580 if ! ip netns exec ${connector_ns} ping -q -c 1 $connect_addr >/dev/null; then
589 if [ -z "$FAILING_LINKS" ]; then
688 if [ $ip_mptcp -eq 1 ]; then
708 if [ $p = "flags" ]; then
712 if [ $p = "dev" ]; then
716 if [ $p = "id" ]; then
720 if [ $p = "port" ]; then
728 if [ $ip_mptcp -eq 1 ]; then
741 if [ $ip_mptcp -eq 1 ]; then
753 if [ $ip_mptcp -eq 1 ]; then
764 if [ $ip_mptcp -eq 1 ]; then
777 if [ $ip_mptcp -eq 1 ]; then
802 if [ $1 = "flags" ]; then
806 elif [ $1 = "dev" ]; then
809 elif [ $1 = "id" ]; then
813 elif [ $1 = "port" ]; then
822 if [ -z "$id" ]; then
827 if [ $ip_mptcp -eq 1 ]; then
846 if [ "$line" = "$expected_line" ]; then
865 if [ -n "${fullmesh}" ]; then
872 if [ $addr_nr_ns1 != "0" ] || [ $addr_nr_ns2 != "0" ]; then
876 if [ $addr_nr_ns1 -gt 0 ]; then
882 if mptcp_lib_is_v6 "${connect_addr}"; then
892 elif [ $addr_nr_ns1 -lt 0 ]; then
894 if [ $rm_nr_ns1 -lt 8 ]; then
904 if [ $i = "id" ]; then
905 if [ $counter -eq $rm_nr_ns1 ]; then
917 elif [ $rm_nr_ns1 -eq 8 ]; then
919 elif [ $rm_nr_ns1 -eq 9 ]; then
928 if [ $addr_nr_ns2 -gt 0 ]; then
934 if mptcp_lib_is_v6 "${connect_addr}"; then
944 elif [ $addr_nr_ns2 -lt 0 ]; then
946 if [ $rm_nr_ns2 -lt 8 ]; then
956 if [ $i = "id" ]; then
957 if [ $counter -eq $rm_nr_ns2 ]; then
972 elif [ $rm_nr_ns2 -eq 8 ]; then
974 elif [ $rm_nr_ns2 -eq 9 ]; then
976 if mptcp_lib_is_v6 "${connect_addr}"; then
985 if [ -n "${sflags}" ]; then
999 if [ $i = "id" ]; then
1016 if $capture; then
1018 if [ -z $SUDO_USER ]; then
1036 if $capture; then
1073 if [ $speed = "fast" ]; then
1075 elif [ $speed = "slow" ]; then
1077 elif [ $speed -gt 0 ]; then
1084 if [ -n "${fastclose}" ]; then
1085 if [ ${test_linkfail} -le 1 ]; then
1094 if [ ${side} = "client" ]; then
1097 elif [ ${side} = "server" ]; then
1107 if [ "$test_linkfail" -gt 1 ];then
1123 if [ "$test_linkfail" -eq 0 ];then
1128 elif [ "$test_linkfail" -eq 1 ] || [ "$test_linkfail" -eq 2 ];then
1158 if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then
1170 if [ "$test_linkfail" -gt 1 ];then
1176 if [ "$test_linkfail" -eq 0 ];then
1209 if [ "$test_linkfail" -gt 2 ]; then
1212 if [ -z "$cinfail" ]; then
1218 elif [ "$test_linkfail" -ne 0 ] && [ -z "$cinfail" ]; then
1231 if [ "$test_linkfail" -gt 2 ]; then
1234 if [ -z "$sinfail" ]; then
1238 elif [ "$test_linkfail" -eq 2 ] && [ -z "$sinfail" ]; then
1267 if [[ "${csum_ns1}" = "+"* ]]; then
1271 if [[ "${csum_ns2}" = "+"* ]]; then
1278 if [ -n "$count" ] && [ "$count" != "$csum_ns1" ]; then
1281 if [ -z "$count" ]; then
1284 { [ "$count" -lt $csum_ns1 ] && [ $allow_multi_errors_ns1 -eq 1 ]; }; then
1291 if [ -n "$count" ] && [ "$count" != "$csum_ns2" ]; then
1294 if [ -z "$count" ]; then
1297 { [ "$count" -lt $csum_ns2 ] && [ $allow_multi_errors_ns2 -eq 1 ]; }; then
1318 if [[ $ns_invert = "invert" ]]; then
1324 if [[ "${fail_tx}" = "-"* ]]; then
1328 if [[ "${fail_rx}" = "-"* ]]; then
1335 if [ -n "$count" ] && [ "$count" != "$fail_tx" ]; then
1338 if [ -z "$count" ]; then
1341 { [ "$count" -gt "$fail_tx" ] && [ $allow_tx_lost -eq 1 ]; }; then
1349 if [ -n "$count" ] && [ "$count" != "$fail_rx" ]; then
1352 if [ -z "$count" ]; then
1355 { [ "$count" -gt "$fail_rx" ] && [ $allow_rx_lost -eq 1 ]; }; then
1374 if [[ $ns_invert = "invert" ]]; then
1382 if [ -z "$count" ]; then
1384 elif [ "$count" != "$fclose_tx" ]; then
1393 if [ -z "$count" ]; then
1395 elif [ "$count" != "$fclose_rx" ]; then
1415 if [[ $ns_invert = "invert" ]]; then
1423 if [ -z "$count" ]; then
1427 { [ $rst_tx -eq 0 ] && [ $count -ne 0 ]; }; then
1435 if [ -z "$count" ]; then
1439 { [ $rst_rx -eq 0 ] && [ $count -ne 0 ]; }; then
1456 if [ -z "$count" ]; then
1458 elif [ "$count" != "$infi_tx" ]; then
1466 if [ -z "$count" ]; then
1468 elif [ "$count" != "$infi_rx" ]; then
1489 if [ "${corrupted_pkts}" -gt 0 ]; then
1495 if [ -z "$count" ]; then
1497 elif [ "$count" != "$syn_nr" ]; then
1506 if [ -z "$count" ]; then
1508 elif [ "$count" != "$syn_ack_nr" ]; then
1512 if [ "$with_cookie" = 2 ] && [ "$count" -gt "$syn_ack_nr" ] && [ "$count" -le "$syn_nr" ]; then
1523 if [ -z "$count" ]; then
1525 elif [ "$count" != "$ack_nr" ]; then
1530 if $validate_checksum; then
1557 if [ -z "$stale_nr" ] || [ -z "$recover_nr" ]; then
1561 [ $((stale_nr - recover_nr)) -ne $stale_delta ]; then
1570 if [ "${dump_stats}" = 1 ]; then
1594 if [[ $ns_invert = "invert" ]]; then
1604 if [ -z "$count" ]; then
1606 # if the test configured a short timeout tolerate greater then expected
1608 elif [ "$count" != "$add_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_nr" ]; }; then
1616 if [ -z "$count" ]; then
1618 elif [ "$count" != "$echo_nr" ]; then
1624 if [ $port_nr -gt 0 ]; then
1627 if [ -z "$count" ]; then
1629 elif [ "$count" != "$port_nr" ]; then
1637 if [ -z "$count" ]; then
1639 elif [ "$count" != "$syn_nr" ]; then
1648 if [ -z "$count" ]; then
1650 elif [ "$count" != "$syn_ack_nr" ]; then
1659 if [ -z "$count" ]; then
1661 elif [ "$count" != "$ack_nr" ]; then
1670 if [ -z "$count" ]; then
1672 elif [ "$count" != "$mis_syn_nr" ]; then
1681 if [ -z "$count" ]; then
1683 elif [ "$count" != "$mis_ack_nr" ]; then
1705 if [ -z "$count" ]; then
1707 # if the test configured a short timeout tolerate greater then expected
1709 …if [ "$count" != "$add_tx_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_tx_nr" ]; }; then
1717 if [ -z "$count" ]; then
1719 elif [ "$count" != "$echo_tx_nr" ]; then
1744 if [ -z $invert ]; then
1747 elif [ $invert = "true" ]; then
1755 if [ -z "$count" ]; then
1757 elif [ "$count" != "$rm_addr_nr" ]; then
1765 if [ -z "$count" ]; then
1767 elif [ -n "$simult" ]; then
1775 if [ "$count" != "$rm_subflow_nr" ]; then
1780 [ "$count" -le "$((rm_subflow_nr *2 ))" ]; then
1785 elif [ "$count" != "$rm_subflow_nr" ]; then
1800 if [ -z "$count" ]; then
1802 elif [ "$count" != "$rm_addr_tx_nr" ]; then
1819 if [ -z "$count" ]; then
1821 elif [ "$count" != "$mp_prio_nr_tx" ]; then
1829 if [ -z "$count" ]; then
1831 elif [ "$count" != "$mp_prio_nr_rx" ]; then
1839 if [ -z "$count" ]; then
1841 elif [ "$count" != "$mpj_syn" ]; then
1849 if [ -z "$count" ]; then
1851 elif [ "$count" != "$mpj_syn_ack" ]; then
1870 if [ "$cnt1" != "$subflow_nr" ] || [ "$cnt2" != "$subflow_nr" ]; then
1877 if [ "${dump_stats}" = 1 ]; then
1902 if [ "$cnt1" != "$exp1" ] || [ "$cnt2" != "$exp2" ]; then
1909 if [ "$dump_stats" = 1 ]; then
1925 if [ -n "$(ss -N $ns1 -inmHM | mptcp_lib_get_info_value $info $info)" ]; then
1938 if [ "$1" != "$cnt1" ] || [ "$2" != "$cnt2" ]; then
1945 if [ "$dump_stats" = 1 ]; then
1966 [ $tx_rate -gt $((expected_rate + tolerance)) ]; then
2000 if reset "no JOIN"; then
2006 if reset "single subflow, limited by client"; then
2015 if reset "single subflow, limited by server"; then
2024 if reset "single subflow"; then
2033 if reset "multiple subflows"; then
2043 if reset "multiple subflows, limited by server"; then
2053 if reset "single subflow, dev"; then
2066 if reset "no MPC reuse with single endpoint"; then
2077 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2089 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2103 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2124 if reset "unused signal address"; then
2133 if reset "signal address"; then
2146 if reset "subflow and signal"; then
2159 if reset "subflow and signal together"; then
2172 if reset "multiple subflows and signal"; then
2184 if reset "signal addresses"; then
2196 if reset "signal invalid addresses"; then
2208 if reset "signal addresses race test"; then
2227 if ! mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2242 if reset "multiple flows, signal, link failure"; then
2264 if reset "multi flows, signal, bidi, link fail"; then
2280 if reset "backup subflow unused, link failure"; then
2295 if reset "backup flow used, multi links fail"; then
2311 if reset "backup flow used, bidi, link failure"; then
2329 if reset_with_add_addr_timeout "signal address, ADD_ADDR timeout"; then
2341 if reset_with_add_addr_timeout "signal address, ADD_ADDR6 timeout" 6; then
2352 if reset_with_add_addr_timeout "signal addresses, ADD_ADDR timeout"; then
2364 if reset_with_add_addr_timeout "invalid address, ADD_ADDR timeout"; then
2379 if reset "remove single subflow"; then
2392 if reset "remove multiple subflows"; then
2405 if reset "remove single address"; then
2418 if reset "remove subflow and signal"; then
2432 if reset "remove subflows and signal"; then
2447 if reset "remove addresses"; then
2462 if reset "remove invalid addresses"; then
2478 if reset "flush subflows and signal"; then
2493 if reset "flush subflows"; then
2503 if mptcp_lib_kversion_ge 5.18; then
2513 if reset "flush addresses"; then
2528 if reset "flush invalid addresses"; then
2543 if reset "remove id 0 subflow"; then
2555 if reset "remove id 0 address"; then
2571 if reset "add single subflow"; then
2580 if reset "add signal address"; then
2590 if reset "add multiple subflows"; then
2599 if reset "add multiple subflows IPv6"; then
2608 if reset "add multiple addresses IPv6"; then
2621 if reset "single subflow IPv6"; then
2631 if reset "unused signal address IPv6"; then
2640 if reset "single address IPv6"; then
2651 if reset "remove single address IPv6"; then
2663 if reset "remove subflow and signal IPv6"; then
2679 if reset "single subflow IPv4-mapped"; then
2688 if reset "signal address IPv4-mapped"; then
2698 if reset "single subflow v4-map-v6"; then
2707 if reset "signal address v4-map-v6"; then
2717 if reset "single subflow v6-map-v4"; then
2726 if reset "signal address v6-map-v4"; then
2736 if reset "no JOIN with diff families v4-v6"; then
2745 if reset "no JOIN with diff families v4-v6-2"; then
2753 # no subflow IPv4 to v6 address, no need to slow down too then
2754 if reset "no JOIN with diff families v6-v4"; then
2766 continue_if mptcp_lib_kversion_ge 6.3; then
2777 continue_if mptcp_lib_kversion_ge 6.3; then
2788 continue_if mptcp_lib_kversion_ge 6.3; then
2801 continue_if mptcp_lib_kversion_ge 6.3; then
2816 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2828 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2841 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2854 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2866 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2875 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2894 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2903 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2926 if [ $e_type = $MPTCP_LIB_EVENT_LISTENER_CREATED ]; then
2928 elif [ $e_type = $MPTCP_LIB_EVENT_LISTENER_CLOSED ]; then
2936 if ! mptcp_lib_kallsyms_has "mptcp_event_pm_listener$"; then
2944 if [ $family ] && [ $family = $AF_INET6 ]; then
2953 [ $sport ] && [ $sport = $e_sport ]; then
2967 if [ ${retl} = 124 ]; then
2969 elif [ ${retl} = 0 ]; then
2976 if [ -z "$count" ]; then
2978 elif [ "$count" != "$attempts" ]; then
2989 if reset "signal address with port"; then
2999 if reset "subflow and signal with port"; then
3011 if reset_with_events "remove single address with port"; then
3029 if reset "remove subflow and signal with port"; then
3042 if reset "flush subflows and signal with port"; then
3056 if reset "multiple addresses with port"; then
3067 if reset "multiple addresses with ports"; then
3077 if reset "port-based signal endpoint must not accept mpc"; then
3097 if reset_with_cookies "single subflow with syn cookies"; then
3106 if reset_with_cookies "multiple subflows with syn cookies"; then
3116 if reset_with_cookies "subflows limited by server w cookies"; then
3126 if reset_with_cookies "signal address with syn cookies"; then
3136 if reset_with_cookies "subflow and signal w cookies"; then
3147 if reset_with_cookies "subflows and signal w. cookies"; then
3162 if reset_with_checksum 0 0; then
3170 if reset_with_checksum 1 1; then
3178 if reset_with_checksum 0 1; then
3186 if reset_with_checksum 1 0; then
3197 if reset_with_allow_join_id0 "single subflow allow join id0 ns1" 1 0; then
3206 if reset_with_allow_join_id0 "single subflow allow join id0 ns2" 0 1; then
3216 if reset_with_allow_join_id0 "signal address allow join id0 ns1" 1 0; then
3227 if reset_with_allow_join_id0 "signal address allow join id0 ns2" 0 1; then
3237 if reset_with_allow_join_id0 "subflow and address allow join id0 1" 1 0; then
3247 if reset_with_allow_join_id0 "subflow and address allow join id0 2" 0 1; then
3262 if reset "fullmesh test 2x1"; then
3276 if reset "fullmesh test 1x1"; then
3280 if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
3292 if reset "fullmesh test 1x2"; then
3306 if reset "fullmesh test 1x2, limited"; then
3318 continue_if mptcp_lib_kversion_ge 5.18; then
3330 continue_if mptcp_lib_kversion_ge 5.18; then
3342 continue_if mptcp_lib_kversion_ge 5.18; then
3355 continue_if mptcp_lib_kversion_ge 5.18; then
3369 if reset_check_counter "fastclose test" "MPTcpExtMPFastcloseTx"; then
3377 if reset_check_counter "fastclose server test" "MPTcpExtMPFastcloseRx"; then
3395 if reset_with_fail "Infinite map" 1; then
3404 if reset_with_fail "MP_FAIL MP_RST" 2; then
3491 if [ ${rc} -eq 2 ]; then
3493 elif [ ${rc} -eq 0 ]; then
3495 elif [ ${rc} -eq 1 ]; then
3532 if false && mptcp_lib_kallsyms_has "mptcp_userspace_pm_dump_addr$"; then
3547 if false && mptcp_lib_kallsyms_has "mptcp_userspace_pm_get_addr$"; then
3571 ! mptcp_lib_kallsyms_has "mptcp_event_pm_listener$"; then
3577 if [ "${count}" != "${exp}" ]; then
3588 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3600 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3612 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3623 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3634 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3647 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3661 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3694 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3722 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3747 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3772 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3847 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3920 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3953 if [ -n "${1}" ]; then
4038 if [[ "${arg}" =~ ^[0-9]+$ ]]; then
4045 if [ ${#tests[@]} -eq 0 ]; then
4053 if [ ${ret} -ne 0 ]; then