Lines Matching full:then
103 if [ $checksum -eq 1 ]; 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
222 # It can be empty, no need to print anything then
259 if ! "${@}"; then
267 if [ "${#only_tests_ids[@]}" -eq 0 ] && [ "${#only_tests_names[@]}" -eq 0 ]; then
273 if [ "${TEST_COUNT}" -eq "${i}" ]; then
278 if [ "${TEST_NAME}" = "${i}" ]; then
288 if [ ${last_test_failed} -eq 1 ]; then
290 elif [ ${last_test_skipped} -eq 1 ]; then
292 elif [ ${last_test_ignored} -ne 1 ]; then
310 if skip_test; then
317 if [ "${init}" != "1" ]; then
335 if ! nstat -asz "${counter}" | grep -wq "${counter}"; then
361 if [ $ip -eq 6 ]; then
371 -j DROP; then
427 if [ $ip -eq 6 ]; then
460 if [ ${rc} -eq ${ksft_skip} ]; then
491 -j "${target}"; then
505 if [ ${last_test_failed} -eq 0 ]; then
530 if [ -n "$bytes" ]; then
534 if [ $out_size -ne $bytes ]; then
549 if [ $check_invert -eq 0 ] || [ $sum -ne $((0xff)) ]; then
569 if ! ip netns exec ${connector_ns} ping -q -c 1 $connect_addr >/dev/null; then
578 if [ -z "$FAILING_LINKS" ]; then
657 if [ $ip_mptcp -eq 1 ]; then
677 if [ $p = "flags" ]; then
681 if [ $p = "dev" ]; then
685 if [ $p = "id" ]; then
689 if [ $p = "port" ]; then
697 if [ $ip_mptcp -eq 1 ]; then
710 if [ $ip_mptcp -eq 1 ]; then
722 if [ $ip_mptcp -eq 1 ]; then
733 if [ $ip_mptcp -eq 1 ]; then
746 if [ $ip_mptcp -eq 1 ]; then
771 if [ $1 = "flags" ]; then
775 elif [ $1 = "dev" ]; then
778 elif [ $1 = "id" ]; then
782 elif [ $1 = "port" ]; then
791 if [ -z "$id" ]; then
796 if [ $ip_mptcp -eq 1 ]; then
815 if [ "$line" = "$expected_line" ]; then
834 if [ -n "${fullmesh}" ]; then
841 if [ $addr_nr_ns1 != "0" ] || [ $addr_nr_ns2 != "0" ]; then
845 if [ $addr_nr_ns1 -gt 0 ]; then
851 if mptcp_lib_is_v6 "${connect_addr}"; then
861 elif [ $addr_nr_ns1 -lt 0 ]; then
863 if [ $rm_nr_ns1 -lt 8 ]; then
873 if [ $i = "id" ]; then
874 if [ $counter -eq $rm_nr_ns1 ]; then
886 elif [ $rm_nr_ns1 -eq 8 ]; then
888 elif [ $rm_nr_ns1 -eq 9 ]; then
897 if [ $addr_nr_ns2 -gt 0 ]; then
903 if mptcp_lib_is_v6 "${connect_addr}"; then
913 elif [ $addr_nr_ns2 -lt 0 ]; then
915 if [ $rm_nr_ns2 -lt 8 ]; then
925 if [ $i = "id" ]; then
926 if [ $counter -eq $rm_nr_ns2 ]; then
941 elif [ $rm_nr_ns2 -eq 8 ]; then
943 elif [ $rm_nr_ns2 -eq 9 ]; then
945 if mptcp_lib_is_v6 "${connect_addr}"; then
954 if [ -n "${sflags}" ]; then
968 if [ $i = "id" ]; then
987 if [ -z "$count" ]; then
989 elif [ "$count" != "$cestab" ]; then
999 if [ -n "${cestab_ns1}" ]; then
1002 if [ -n "${cestab_ns2}" ]; then
1025 if [ $capture -eq 1 ]; then
1027 if [ -z $SUDO_USER ] ; then
1048 if [ $speed = "fast" ]; then
1050 elif [ $speed = "slow" ]; then
1052 elif [ $speed -gt 0 ]; then
1059 if [ -n "${fastclose}" ]; then
1060 if [ ${test_linkfail} -le 1 ]; then
1069 if [ ${side} = "client" ]; then
1072 elif [ ${side} = "server" ]; then
1082 if [ "$test_linkfail" -gt 1 ];then
1098 if [ "$test_linkfail" -eq 0 ];then
1103 elif [ "$test_linkfail" -eq 1 ] || [ "$test_linkfail" -eq 2 ];then
1127 if [ $capture -eq 1 ]; then
1137 if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then
1150 if [ "$test_linkfail" -gt 1 ];then
1156 if [ "$test_linkfail" -eq 0 ];then
1163 if [ $retc -eq 0 ] && [ $rets -eq 0 ];then
1194 if [ "$test_linkfail" -gt 2 ]; then
1197 if [ -z "$cinfail" ]; then
1203 elif [ "$test_linkfail" -ne 0 ] && [ -z "$cinfail" ]; then
1216 if [ "$test_linkfail" -gt 2 ]; then
1219 if [ -z "$sinfail" ]; then
1223 elif [ "$test_linkfail" -eq 2 ] && [ -z "$sinfail" ]; then
1252 if [[ "${csum_ns1}" = "+"* ]]; then
1256 if [[ "${csum_ns2}" = "+"* ]]; then
1263 if [ "$count" != "$csum_ns1" ]; then
1266 if [ -z "$count" ]; then
1269 { [ "$count" -lt $csum_ns1 ] && [ $allow_multi_errors_ns1 -eq 1 ]; }; then
1276 if [ "$count" != "$csum_ns2" ]; then
1279 if [ -z "$count" ]; then
1282 { [ "$count" -lt $csum_ns2 ] && [ $allow_multi_errors_ns2 -eq 1 ]; }; then
1303 if [[ $ns_invert = "invert" ]]; then
1309 if [[ "${fail_tx}" = "-"* ]]; then
1313 if [[ "${fail_rx}" = "-"* ]]; then
1320 if [ "$count" != "$fail_tx" ]; then
1323 if [ -z "$count" ]; then
1326 { [ "$count" -gt "$fail_tx" ] && [ $allow_tx_lost -eq 1 ]; }; then
1334 if [ "$count" != "$fail_rx" ]; then
1337 if [ -z "$count" ]; then
1340 { [ "$count" -gt "$fail_rx" ] && [ $allow_rx_lost -eq 1 ]; }; then
1359 if [[ $ns_invert = "invert" ]]; then
1367 if [ -z "$count" ]; then
1369 elif [ "$count" != "$fclose_tx" ]; then
1378 if [ -z "$count" ]; then
1380 elif [ "$count" != "$fclose_rx" ]; then
1400 if [[ $ns_invert = "invert" ]]; then
1408 if [ -z "$count" ]; then
1412 { [ $rst_tx -eq 0 ] && [ $count -ne 0 ]; }; then
1420 if [ -z "$count" ]; then
1424 { [ $rst_rx -eq 0 ] && [ $count -ne 0 ]; }; then
1441 if [ -z "$count" ]; then
1443 elif [ "$count" != "$infi_tx" ]; then
1451 if [ -z "$count" ]; then
1453 elif [ "$count" != "$infi_rx" ]; then
1474 if [ "${corrupted_pkts}" -gt 0 ]; then
1480 if [ -z "$count" ]; then
1482 elif [ "$count" != "$syn_nr" ]; then
1491 if [ -z "$count" ]; then
1493 elif [ "$count" != "$syn_ack_nr" ]; then
1497 if [ "$with_cookie" = 2 ] && [ "$count" -gt "$syn_ack_nr" ] && [ "$count" -le "$syn_nr" ]; then
1508 if [ -z "$count" ]; then
1510 elif [ "$count" != "$ack_nr" ]; then
1515 if [ $validate_checksum -eq 1 ]; then
1542 if [ -z "$stale_nr" ] || [ -z "$recover_nr" ]; then
1546 [ $((stale_nr - recover_nr)) -ne $stale_delta ]; then
1555 if [ "${dump_stats}" = 1 ]; then
1579 if [ -z "$count" ]; then
1581 # if the test configured a short timeout tolerate greater then expected
1583 elif [ "$count" != "$add_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_nr" ]; }; then
1591 if [ -z "$count" ]; then
1593 elif [ "$count" != "$echo_nr" ]; then
1599 if [ $port_nr -gt 0 ]; then
1602 if [ -z "$count" ]; then
1604 elif [ "$count" != "$port_nr" ]; then
1612 if [ -z "$count" ]; then
1614 elif [ "$count" != "$syn_nr" ]; then
1623 if [ -z "$count" ]; then
1625 elif [ "$count" != "$syn_ack_nr" ]; then
1634 if [ -z "$count" ]; then
1636 elif [ "$count" != "$ack_nr" ]; then
1645 if [ -z "$count" ]; then
1647 elif [ "$count" != "$mis_syn_nr" ]; then
1656 if [ -z "$count" ]; then
1658 elif [ "$count" != "$mis_ack_nr" ]; then
1678 if [ -z "$count" ]; then
1680 # if the test configured a short timeout tolerate greater then expected
1682 …if [ "$count" != "$add_tx_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_tx_nr" ]; }; then
1690 if [ -z "$count" ]; then
1692 elif [ "$count" != "$echo_tx_nr" ]; then
1717 if [ -z $invert ]; then
1720 elif [ $invert = "true" ]; then
1728 if [ -z "$count" ]; then
1730 elif [ "$count" != "$rm_addr_nr" ]; then
1738 if [ -z "$count" ]; then
1740 elif [ -n "$simult" ]; then
1748 if [ "$count" != "$rm_subflow_nr" ]; then
1753 [ "$count" -le "$((rm_subflow_nr *2 ))" ]; then
1758 elif [ "$count" != "$rm_subflow_nr" ]; then
1773 if [ -z "$count" ]; then
1775 elif [ "$count" != "$rm_addr_tx_nr" ]; then
1790 if [ -z "$count" ]; then
1792 elif [ "$count" != "$mp_prio_nr_tx" ]; then
1800 if [ -z "$count" ]; then
1802 elif [ "$count" != "$mp_prio_nr_rx" ]; then
1821 if [ "$cnt1" != "$subflow_nr" ] || [ "$cnt2" != "$subflow_nr" ]; then
1828 if [ "${dump_stats}" = 1 ]; then
1853 if [ "$cnt1" != "$exp1" ] || [ "$cnt2" != "$exp2" ]; then
1860 if [ "$dump_stats" = 1 ]; then
1876 if [ -n "$(ss -N $ns1 -inmHM | mptcp_lib_get_info_value $info $info)" ]; then
1889 if [ "$1" != "$cnt1" ] || [ "$2" != "$cnt2" ]; then
1896 if [ "$dump_stats" = 1 ]; then
1917 [ $tx_rate -gt $((expected_rate + tolerance)) ]; then
1951 if reset "no JOIN"; then
1957 if reset "single subflow, limited by client"; then
1966 if reset "single subflow, limited by server"; then
1975 if reset "single subflow"; then
1984 if reset "multiple subflows"; then
1994 if reset "multiple subflows, limited by server"; then
2004 if reset "single subflow, dev"; then
2017 if reset "no MPC reuse with single endpoint"; then
2028 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2040 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2054 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2075 if reset "unused signal address"; then
2084 if reset "signal address"; then
2097 if reset "subflow and signal"; then
2108 if reset "multiple subflows and signal"; then
2120 if reset "signal addresses"; then
2132 if reset "signal invalid addresses"; then
2144 if reset "signal addresses race test"; then
2163 if ! mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2178 if reset "multiple flows, signal, link failure"; then
2200 if reset "multi flows, signal, bidi, link fail"; then
2216 if reset "backup subflow unused, link failure"; then
2231 if reset "backup flow used, multi links fail"; then
2247 if reset "backup flow used, bidi, link failure"; then
2265 if reset_with_add_addr_timeout "signal address, ADD_ADDR timeout"; then
2277 if reset_with_add_addr_timeout "signal address, ADD_ADDR6 timeout" 6; then
2288 if reset_with_add_addr_timeout "signal addresses, ADD_ADDR timeout"; then
2300 if reset_with_add_addr_timeout "invalid address, ADD_ADDR timeout"; then
2315 if reset "remove single subflow"; then
2328 if reset "remove multiple subflows"; then
2341 if reset "remove single address"; then
2354 if reset "remove subflow and signal"; then
2368 if reset "remove subflows and signal"; then
2383 if reset "remove addresses"; then
2398 if reset "remove invalid addresses"; then
2413 if reset "flush subflows and signal"; then
2428 if reset "flush subflows"; then
2438 if mptcp_lib_kversion_ge 5.18; then
2448 if reset "flush addresses"; then
2463 if reset "flush invalid addresses"; then
2478 if reset "remove id 0 subflow"; then
2490 if reset "remove id 0 address"; then
2506 if reset "add single subflow"; then
2516 if reset "add signal address"; then
2527 if reset "add multiple subflows"; then
2537 if reset "add multiple subflows IPv6"; then
2547 if reset "add multiple addresses IPv6"; then
2561 if reset "single subflow IPv6"; then
2571 if reset "unused signal address IPv6"; then
2580 if reset "single address IPv6"; then
2591 if reset "remove single address IPv6"; then
2603 if reset "remove subflow and signal IPv6"; then
2619 if reset "single subflow IPv4-mapped"; then
2628 if reset "signal address IPv4-mapped"; then
2638 if reset "single subflow v4-map-v6"; then
2647 if reset "signal address v4-map-v6"; then
2657 if reset "single subflow v6-map-v4"; then
2666 if reset "signal address v6-map-v4"; then
2676 if reset "no JOIN with diff families v4-v6"; then
2685 if reset "no JOIN with diff families v4-v6-2"; then
2693 # no subflow IPv4 to v6 address, no need to slow down too then
2694 if reset "no JOIN with diff families v6-v4"; then
2706 continue_if mptcp_lib_kversion_ge 6.3; then
2717 continue_if mptcp_lib_kversion_ge 6.3; then
2728 continue_if mptcp_lib_kversion_ge 6.3; then
2741 continue_if mptcp_lib_kversion_ge 6.3; then
2756 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2768 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2781 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2793 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2802 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2812 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2821 continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then
2851 if [ $e_type = $LISTENER_CREATED ]; then
2853 elif [ $e_type = $LISTENER_CLOSED ]; then
2861 if ! mptcp_lib_kallsyms_has "mptcp_event_pm_listener$"; then
2869 if [ $family ] && [ $family = $AF_INET6 ]; then
2878 [ $sport ] && [ $sport = $e_sport ]; then
2888 if reset "signal address with port"; then
2898 if reset "subflow and signal with port"; then
2910 if reset_with_events "remove single address with port"; then
2926 if reset "remove subflow and signal with port"; then
2939 if reset "flush subflows and signal with port"; then
2953 if reset "multiple addresses with port"; then
2964 if reset "multiple addresses with ports"; then
2978 if reset_with_cookies "single subflow with syn cookies"; then
2987 if reset_with_cookies "multiple subflows with syn cookies"; then
2997 if reset_with_cookies "subflows limited by server w cookies"; then
3007 if reset_with_cookies "signal address with syn cookies"; then
3017 if reset_with_cookies "subflow and signal w cookies"; then
3028 if reset_with_cookies "subflows and signal w. cookies"; then
3043 if reset_with_checksum 0 0; then
3051 if reset_with_checksum 1 1; then
3059 if reset_with_checksum 0 1; then
3067 if reset_with_checksum 1 0; then
3078 if reset_with_allow_join_id0 "single subflow allow join id0 ns1" 1 0; then
3087 if reset_with_allow_join_id0 "single subflow allow join id0 ns2" 0 1; then
3097 if reset_with_allow_join_id0 "signal address allow join id0 ns1" 1 0; then
3108 if reset_with_allow_join_id0 "signal address allow join id0 ns2" 0 1; then
3118 if reset_with_allow_join_id0 "subflow and address allow join id0 1" 1 0; then
3128 if reset_with_allow_join_id0 "subflow and address allow join id0 2" 0 1; then
3143 if reset "fullmesh test 2x1"; then
3157 if reset "fullmesh test 1x1"; then
3170 if reset "fullmesh test 1x2"; then
3184 if reset "fullmesh test 1x2, limited"; then
3196 continue_if mptcp_lib_kversion_ge 5.18; then
3208 continue_if mptcp_lib_kversion_ge 5.18; then
3220 continue_if mptcp_lib_kversion_ge 5.18; then
3233 continue_if mptcp_lib_kversion_ge 5.18; then
3247 if reset_check_counter "fastclose test" "MPTcpExtMPFastcloseTx"; then
3255 if reset_check_counter "fastclose server test" "MPTcpExtMPFastcloseRx"; then
3273 if reset_with_fail "Infinite map" 1; then
3281 if reset_with_fail "MP_FAIL MP_RST" 2; then
3363 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3375 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3387 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3398 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3409 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3422 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3436 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3463 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3485 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3504 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3528 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3558 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3583 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3611 if [ -n "${1}" ]; then
3696 if [[ "${arg}" =~ ^[0-9]+$ ]]; then
3703 if [ ${#tests[@]} -eq 0 ]; then
3711 if [ ${ret} -ne 0 ]; then