Lines Matching full:then
101 if [ $checksum -eq 1 ]; then
157 if ! ip -Version &> /dev/null; then
163 if iptables-legacy -V &> /dev/null; then
166 elif ! iptables -V &> /dev/null; then
169 elif ! ip6tables -V &> /dev/null; then
215 # It can be empty, no need to print anything then
252 if ! "${@}"; then
260 if [ "${#only_tests_ids[@]}" -eq 0 ] && [ "${#only_tests_names[@]}" -eq 0 ]; then
266 if [ "${TEST_COUNT}" -eq "${i}" ]; then
271 if [ "${TEST_NAME}" = "${i}" ]; then
281 if [ ${last_test_failed} -eq 1 ]; then
283 elif [ ${last_test_skipped} -eq 1 ]; then
285 elif [ ${last_test_ignored} -ne 1 ]; then
303 if skip_test; then
310 if [ "${init}" != "1" ]; then
328 if ! nstat -asz "${counter}" | grep -wq "${counter}"; then
354 if [ $ip -eq 6 ]; then
364 -j DROP; then
420 if [ $ip -eq 6 ]; then
453 if [ ${rc} -eq ${ksft_skip} ]; then
484 -j "${target}"; then
498 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
622 if [ -z "${count}" ]; then
710 if [ $ip_mptcp -eq 1 ]; then
730 if [ $p = "flags" ]; then
734 if [ $p = "dev" ]; then
738 if [ $p = "id" ]; then
742 if [ $p = "port" ]; then
750 if [ $ip_mptcp -eq 1 ]; then
763 if [ $ip_mptcp -eq 1 ]; then
775 if [ $ip_mptcp -eq 1 ]; then
786 if [ $ip_mptcp -eq 1 ]; then
799 if [ $ip_mptcp -eq 1 ]; then
824 if [ $1 = "flags" ]; then
828 elif [ $1 = "dev" ]; then
831 elif [ $1 = "id" ]; then
835 elif [ $1 = "port" ]; then
844 if [ -z "$id" ]; then
849 if [ $ip_mptcp -eq 1 ]; then
868 if [ "$line" = "$expected_line" ]; then
887 if [ -n "${fullmesh}" ]; then
894 if [ $addr_nr_ns1 != "0" ] || [ $addr_nr_ns2 != "0" ]; then
898 if [ $addr_nr_ns1 -gt 0 ]; then
904 if is_v6 "${connect_addr}"; then
914 elif [ $addr_nr_ns1 -lt 0 ]; then
916 if [ $rm_nr_ns1 -lt 8 ]; then
926 if [ $i = "id" ]; then
927 if [ $counter -eq $rm_nr_ns1 ]; then
939 elif [ $rm_nr_ns1 -eq 8 ]; then
941 elif [ $rm_nr_ns1 -eq 9 ]; then
950 if [ $addr_nr_ns2 -gt 0 ]; then
956 if is_v6 "${connect_addr}"; then
966 elif [ $addr_nr_ns2 -lt 0 ]; then
968 if [ $rm_nr_ns2 -lt 8 ]; then
978 if [ $i = "id" ]; then
979 if [ $counter -eq $rm_nr_ns2 ]; then
994 elif [ $rm_nr_ns2 -eq 8 ]; then
996 elif [ $rm_nr_ns2 -eq 9 ]; then
998 if is_v6 "${connect_addr}"; then
1007 if [ -n "${sflags}" ]; then
1021 if [ $i = "id" ]; then
1050 if [ $capture -eq 1 ]; then
1052 if [ -z $SUDO_USER ] ; 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
1151 if [ $capture -eq 1 ]; then
1161 if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then
1174 if [ "$test_linkfail" -gt 1 ];then
1180 if [ "$test_linkfail" -eq 0 ];then
1187 if [ $retc -eq 0 ] && [ $rets -eq 0 ];then
1219 if [ "$test_linkfail" -gt 2 ]; then
1222 if [ -z "$cinfail" ]; then
1228 elif [ "$test_linkfail" -ne 0 ] && [ -z "$cinfail" ]; then
1241 if [ "$test_linkfail" -gt 2 ]; then
1244 if [ -z "$sinfail" ]; then
1248 elif [ "$test_linkfail" -eq 2 ] && [ -z "$sinfail" ]; then
1277 if [[ "${csum_ns1}" = "+"* ]]; then
1281 if [[ "${csum_ns2}" = "+"* ]]; then
1288 if [ "$count" != "$csum_ns1" ]; then
1291 if [ -z "$count" ]; then
1294 { [ "$count" -lt $csum_ns1 ] && [ $allow_multi_errors_ns1 -eq 1 ]; }; then
1301 if [ "$count" != "$csum_ns2" ]; then
1304 if [ -z "$count" ]; then
1307 { [ "$count" -lt $csum_ns2 ] && [ $allow_multi_errors_ns2 -eq 1 ]; }; then
1328 if [[ $ns_invert = "invert" ]]; then
1334 if [[ "${fail_tx}" = "-"* ]]; then
1338 if [[ "${fail_rx}" = "-"* ]]; then
1345 if [ "$count" != "$fail_tx" ]; then
1348 if [ -z "$count" ]; then
1351 { [ "$count" -gt "$fail_tx" ] && [ $allow_tx_lost -eq 1 ]; }; then
1359 if [ "$count" != "$fail_rx" ]; then
1362 if [ -z "$count" ]; then
1365 { [ "$count" -gt "$fail_rx" ] && [ $allow_rx_lost -eq 1 ]; }; then
1384 if [[ $ns_invert = "invert" ]]; then
1392 if [ -z "$count" ]; then
1394 elif [ "$count" != "$fclose_tx" ]; then
1403 if [ -z "$count" ]; then
1405 elif [ "$count" != "$fclose_rx" ]; then
1425 if [[ $ns_invert = "invert" ]]; then
1433 if [ -z "$count" ]; then
1437 { [ $rst_tx -eq 0 ] && [ $count -ne 0 ]; }; then
1445 if [ -z "$count" ]; then
1449 { [ $rst_rx -eq 0 ] && [ $count -ne 0 ]; }; then
1466 if [ -z "$count" ]; then
1468 elif [ "$count" != "$infi_tx" ]; then
1476 if [ -z "$count" ]; then
1478 elif [ "$count" != "$infi_rx" ]; then
1499 if [ "${corrupted_pkts}" -gt 0 ]; then
1505 if [ -z "$count" ]; then
1507 elif [ "$count" != "$syn_nr" ]; then
1516 if [ -z "$count" ]; then
1518 elif [ "$count" != "$syn_ack_nr" ]; then
1522 if [ "$with_cookie" = 2 ] && [ "$count" -gt "$syn_ack_nr" ] && [ "$count" -le "$syn_nr" ]; then
1533 if [ -z "$count" ]; then
1535 elif [ "$count" != "$ack_nr" ]; then
1540 if [ $validate_checksum -eq 1 ]; then
1567 if [ -z "$stale_nr" ] || [ -z "$recover_nr" ]; then
1571 [ $((stale_nr - recover_nr)) -ne $stale_delta ]; then
1580 if [ "${dump_stats}" = 1 ]; 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
1703 if [ -z "$count" ]; then
1705 # if the test configured a short timeout tolerate greater then expected
1707 …if [ "$count" != "$add_tx_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_tx_nr" ]; }; then
1715 if [ -z "$count" ]; then
1717 elif [ "$count" != "$echo_tx_nr" ]; then
1742 if [ -z $invert ]; then
1745 elif [ $invert = "true" ]; then
1753 if [ -z "$count" ]; then
1755 elif [ "$count" != "$rm_addr_nr" ]; then
1763 if [ -z "$count" ]; then
1765 elif [ -n "$simult" ]; then
1775 [ "$count" -le "$((rm_subflow_nr *2 ))" ]; then
1780 elif [ "$count" != "$rm_subflow_nr" ]; then
1795 if [ -z "$count" ]; then
1797 elif [ "$count" != "$rm_addr_tx_nr" ]; then
1812 if [ -z "$count" ]; then
1814 elif [ "$count" != "$mp_prio_nr_tx" ]; then
1822 if [ -z "$count" ]; then
1824 elif [ "$count" != "$mp_prio_nr_rx" ]; then
1843 if [ "$cnt1" != "$subflow_nr" ] || [ "$cnt2" != "$subflow_nr" ]; then
1850 if [ "${dump_stats}" = 1 ]; then
1877 if [ "$cnt1" != "$exp1" ] || [ "$cnt2" != "$exp2" ]; then
1884 if [ "$dump_stats" = 1 ]; then
1905 [ $tx_rate -gt $((expected_rate + tolerance)) ]; then
1939 if reset "no JOIN"; then
1945 if reset "single subflow, limited by client"; then
1954 if reset "single subflow, limited by server"; then
1963 if reset "single subflow"; then
1972 if reset "multiple subflows"; then
1982 if reset "multiple subflows, limited by server"; then
1992 if reset "single subflow, dev"; then
2005 if reset "no MPC reuse with single endpoint"; then
2016 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2028 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2042 continue_if mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2063 if reset "unused signal address"; then
2072 if reset "signal address"; then
2085 if reset "subflow and signal"; then
2096 if reset "multiple subflows and signal"; then
2108 if reset "signal addresses"; then
2120 if reset "signal invalid addresses"; then
2132 if reset "signal addresses race test"; then
2151 if ! mptcp_lib_kallsyms_has "mptcp_pm_subflow_check_next$"; then
2166 if reset "multiple flows, signal, link failure"; then
2188 if reset "multi flows, signal, bidi, link fail"; then
2204 if reset "backup subflow unused, link failure"; then
2219 if reset "backup flow used, multi links fail"; then
2235 if reset "backup flow used, bidi, link failure"; then
2253 if reset_with_add_addr_timeout "signal address, ADD_ADDR timeout"; then
2265 if reset_with_add_addr_timeout "signal address, ADD_ADDR6 timeout" 6; then
2276 if reset_with_add_addr_timeout "signal addresses, ADD_ADDR timeout"; then
2288 if reset_with_add_addr_timeout "invalid address, ADD_ADDR timeout"; then
2303 if reset "remove single subflow"; then
2316 if reset "remove multiple subflows"; then
2329 if reset "remove single address"; then
2342 if reset "remove subflow and signal"; then
2356 if reset "remove subflows and signal"; then
2371 if reset "remove addresses"; then
2386 if reset "remove invalid addresses"; then
2401 if reset "flush subflows and signal"; then
2416 if reset "flush subflows"; then
2426 if mptcp_lib_kversion_ge 5.18; then
2436 if reset "flush addresses"; then
2451 if reset "flush invalid addresses"; then
2466 if reset "remove id 0 subflow"; then
2478 if reset "remove id 0 address"; then
2494 if reset "add single subflow"; then
2503 if reset "add signal address"; then
2513 if reset "add multiple subflows"; then
2522 if reset "add multiple subflows IPv6"; then
2531 if reset "add multiple addresses IPv6"; then
2544 if reset "single subflow IPv6"; then
2554 if reset "unused signal address IPv6"; then
2563 if reset "single address IPv6"; then
2574 if reset "remove single address IPv6"; then
2586 if reset "remove subflow and signal IPv6"; then
2602 if reset "single subflow IPv4-mapped"; then
2611 if reset "signal address IPv4-mapped"; then
2621 if reset "single subflow v4-map-v6"; then
2630 if reset "signal address v4-map-v6"; then
2640 if reset "single subflow v6-map-v4"; then
2649 if reset "signal address v6-map-v4"; then
2659 if reset "no JOIN with diff families v4-v6"; then
2668 if reset "no JOIN with diff families v4-v6-2"; then
2676 # no subflow IPv4 to v6 address, no need to slow down too then
2677 if reset "no JOIN with diff families v6-v4"; then
2689 continue_if mptcp_lib_kversion_ge 6.3; then
2700 continue_if mptcp_lib_kversion_ge 6.3; then
2711 continue_if mptcp_lib_kversion_ge 6.3; then
2724 continue_if mptcp_lib_kversion_ge 6.3; then
2739 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2751 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2764 continue_if mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
2776 continue_if mptcp_lib_kallsyms_doesnt_have "mptcp_subflow_send_ack$"; then
2785 continue_if mptcp_lib_kallsyms_doesnt_have "mptcp_subflow_send_ack$"; then
2795 continue_if mptcp_lib_kallsyms_doesnt_have "mptcp_subflow_send_ack$"; then
2804 continue_if mptcp_lib_kallsyms_doesnt_have "mptcp_subflow_send_ack$"; then
2833 if [ $e_type = $LISTENER_CREATED ]; then
2835 elif [ $e_type = $LISTENER_CLOSED ]; then
2843 if ! mptcp_lib_kallsyms_has "mptcp_event_pm_listener$"; then
2851 if [ $family ] && [ $family = $AF_INET6 ]; then
2860 [ $sport ] && [ $sport = $e_sport ]; then
2870 if reset "signal address with port"; then
2880 if reset "subflow and signal with port"; then
2892 if reset_with_events "remove single address with port"; then
2908 if reset "remove subflow and signal with port"; then
2921 if reset "flush subflows and signal with port"; then
2935 if reset "multiple addresses with port"; then
2946 if reset "multiple addresses with ports"; then
2960 if reset_with_cookies "single subflow with syn cookies"; then
2969 if reset_with_cookies "multiple subflows with syn cookies"; then
2979 if reset_with_cookies "subflows limited by server w cookies"; then
2989 if reset_with_cookies "signal address with syn cookies"; then
2999 if reset_with_cookies "subflow and signal w cookies"; then
3010 if reset_with_cookies "subflows and signal w. cookies"; then
3025 if reset_with_checksum 0 0; then
3033 if reset_with_checksum 1 1; then
3041 if reset_with_checksum 0 1; then
3049 if reset_with_checksum 1 0; then
3060 if reset_with_allow_join_id0 "single subflow allow join id0 ns1" 1 0; then
3069 if reset_with_allow_join_id0 "single subflow allow join id0 ns2" 0 1; then
3079 if reset_with_allow_join_id0 "signal address allow join id0 ns1" 1 0; then
3090 if reset_with_allow_join_id0 "signal address allow join id0 ns2" 0 1; then
3100 if reset_with_allow_join_id0 "subflow and address allow join id0 1" 1 0; then
3110 if reset_with_allow_join_id0 "subflow and address allow join id0 2" 0 1; then
3125 if reset "fullmesh test 2x1"; then
3139 if reset "fullmesh test 1x1"; then
3152 if reset "fullmesh test 1x2"; then
3166 if reset "fullmesh test 1x2, limited"; then
3178 continue_if mptcp_lib_kversion_ge 5.18; then
3190 continue_if mptcp_lib_kversion_ge 5.18; then
3202 continue_if mptcp_lib_kversion_ge 5.18; then
3215 continue_if mptcp_lib_kversion_ge 5.18; then
3229 if reset_check_counter "fastclose test" "MPTcpExtMPFastcloseTx"; then
3237 if reset_check_counter "fastclose server test" "MPTcpExtMPFastcloseRx"; then
3256 if reset_with_fail "Infinite map" 1; then
3264 if reset_with_fail "MP_FAIL MP_RST" 2; then
3344 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3356 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3368 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3379 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3390 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3403 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3417 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3438 continue_if mptcp_lib_has_file '/proc/sys/net/mptcp/pm_type'; then
3461 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3485 mptcp_lib_kallsyms_has "subflow_rebuild_header$"; then
3512 if [ -n "${1}" ]; then
3597 if [[ "${arg}" =~ ^[0-9]+$ ]]; then
3604 if [ ${#tests[@]} -eq 0 ]; then
3612 if [ ${ret} -ne 0 ]; then