Lines Matching refs:count

868 	local count
871 count=$(mptcp_lib_get_counter ${ns} "MPTcpExtMPCurrEstab")
872 if [ -z "$count" ]; then
874 elif [ "$count" != "$cestab" ]; then
875 fail_test "got $count current establish[s] expected $cestab"
1139 local count
1154 count=$(mptcp_lib_get_counter ${ns1} "MPTcpExtDataCsumErr")
1155 if [ -n "$count" ] && [ "$count" != "$csum_ns1" ]; then
1156 extra_msg+=" ns1=$count"
1158 if [ -z "$count" ]; then
1160 elif { [ "$count" != $csum_ns1 ] && [ $allow_multi_errors_ns1 -eq 0 ]; } ||
1161 { [ "$count" -lt $csum_ns1 ] && [ $allow_multi_errors_ns1 -eq 1 ]; }; then
1162 fail_test "got $count data checksum error[s] expected $csum_ns1"
1168 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtDataCsumErr")
1169 if [ -n "$count" ] && [ "$count" != "$csum_ns2" ]; then
1170 extra_msg+=" ns2=$count"
1172 if [ -z "$count" ]; then
1174 elif { [ "$count" != $csum_ns2 ] && [ $allow_multi_errors_ns2 -eq 0 ]; } ||
1175 { [ "$count" -lt $csum_ns2 ] && [ $allow_multi_errors_ns2 -eq 1 ]; }; then
1176 fail_test "got $count data checksum error[s] expected $csum_ns2"
1189 local count
1215 count=$(mptcp_lib_get_counter ${ns_tx} "MPTcpExtMPFailTx")
1216 if [ -n "$count" ] && [ "$count" != "$fail_tx" ]; then
1217 extra_msg+=" tx=$count"
1219 if [ -z "$count" ]; then
1221 elif { [ "$count" != "$fail_tx" ] && [ $allow_tx_lost -eq 0 ]; } ||
1222 { [ "$count" -gt "$fail_tx" ] && [ $allow_tx_lost -eq 1 ]; }; then
1223 fail_test "got $count MP_FAIL[s] TX expected $fail_tx"
1229 count=$(mptcp_lib_get_counter ${ns_rx} "MPTcpExtMPFailRx")
1230 if [ -n "$count" ] && [ "$count" != "$fail_rx" ]; then
1231 extra_msg+=" rx=$count"
1233 if [ -z "$count" ]; then
1235 elif { [ "$count" != "$fail_rx" ] && [ $allow_rx_lost -eq 0 ]; } ||
1236 { [ "$count" -gt "$fail_rx" ] && [ $allow_rx_lost -eq 1 ]; }; then
1237 fail_test "got $count MP_FAIL[s] RX expected $fail_rx"
1250 local count
1264 count=$(mptcp_lib_get_counter ${ns_tx} "MPTcpExtMPFastcloseTx")
1265 if [ -z "$count" ]; then
1267 elif [ "$count" != "$fclose_tx" ]; then
1268 fail_test "got $count MP_FASTCLOSE[s] TX expected $fclose_tx"
1274 count=$(mptcp_lib_get_counter ${ns_rx} "MPTcpExtMPFastcloseRx")
1275 if [ -z "$count" ]; then
1277 elif [ "$count" != "$fclose_rx" ]; then
1278 fail_test "got $count MP_FASTCLOSE[s] RX expected $fclose_rx"
1289 local count
1303 count=$(mptcp_lib_get_counter ${ns_tx} "MPTcpExtMPRstTx")
1304 if [ -z "$count" ]; then
1307 elif { [ $rst_tx -ne 0 ] && [ $count -lt $rst_tx ]; } ||
1308 { [ $rst_tx -eq 0 ] && [ $count -ne 0 ]; }; then
1309 fail_test "got $count MP_RST[s] TX expected $rst_tx"
1315 count=$(mptcp_lib_get_counter ${ns_rx} "MPTcpExtMPRstRx")
1316 if [ -z "$count" ]; then
1319 elif { [ $rst_rx -ne 0 ] && [ $count -lt $rst_rx ]; } ||
1320 { [ $rst_rx -eq 0 ] && [ $count -ne 0 ]; }; then
1321 fail_test "got $count MP_RST[s] RX expected $rst_rx"
1331 local count
1334 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtInfiniteMapTx")
1335 if [ -z "$count" ]; then
1337 elif [ "$count" != "$infi_tx" ]; then
1338 fail_test "got $count infinite map[s] TX expected $infi_tx"
1344 count=$(mptcp_lib_get_counter ${ns1} "MPTcpExtInfiniteMapRx")
1345 if [ -z "$count" ]; then
1347 elif [ "$count" != "$infi_rx" ]; then
1348 fail_test "got $count infinite map[s] RX expected $infi_rx"
1361 local count
1363 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtMPJoinSynTx")
1364 if [ -z "$count" ]; then
1366 elif [ "$count" != "$syn_tx" ]; then
1369 fail_test "got $count JOIN[s] syn tx expected $syn_tx"
1372 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtMPJoinSynTxCreatSkErr")
1373 if [ -z "$count" ]; then
1375 elif [ "$count" != "$create" ]; then
1378 fail_test "got $count JOIN[s] syn tx create socket error expected $create"
1381 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtMPJoinSynTxBindErr")
1382 if [ -z "$count" ]; then
1384 elif [ "$count" != "$bind" ]; then
1387 fail_test "got $count JOIN[s] syn tx bind error expected $bind"
1390 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtMPJoinSynTxConnectErr")
1391 if [ -z "$count" ]; then
1393 elif [ "$count" != "$connect" ]; then
1396 fail_test "got $count JOIN[s] syn tx connect error expected $connect"
1415 local count
1422 count=$(mptcp_lib_get_counter ${ns1} "MPTcpExtMPJoinSynRx")
1423 if [ -z "$count" ]; then
1425 elif [ "$count" != "$syn_nr" ]; then
1428 fail_test "got $count JOIN[s] syn rx expected $syn_nr"
1432 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtMPJoinSynAckRx")
1433 if [ -z "$count" ]; then
1435 elif [ "$count" != "$syn_ack_nr" ]; then
1439 if [ "$with_cookie" != 2 ] || [ "$count" -le "$syn_ack_nr" ] || [ "$count" -gt "$syn_nr" ]; then
1442 fail_test "got $count JOIN[s] synack rx expected $syn_ack_nr"
1446 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtMPJoinSynAckHMacFailure")
1447 if [ -z "$count" ]; then
1449 elif [ "$count" != "0" ]; then
1452 fail_test "got $count JOIN[s] synack HMAC failure expected 0"
1455 count=$(mptcp_lib_get_counter ${ns1} "MPTcpExtMPJoinAckRx")
1456 if [ -z "$count" ]; then
1458 elif [ "$count" != "$ack_nr" ]; then
1461 fail_test "got $count JOIN[s] ack rx expected $ack_nr"
1464 count=$(mptcp_lib_get_counter ${ns1} "MPTcpExtMPJoinAckHMacFailure")
1465 if [ -z "$count" ]; then
1467 elif [ "$count" != "0" ]; then
1470 fail_test "got $count JOIN[s] ack HMAC failure expected 0"
1473 count=$(mptcp_lib_get_counter ${ns1} "MPTcpExtMPJoinRejected")
1474 if [ -z "$count" ]; then
1476 elif [ "$count" != "$syn_rej" ]; then
1479 fail_test "got $count JOIN[s] syn rejected expected $syn_rej"
1549 local count
1562 count=$(mptcp_lib_get_counter ${ns_rx} "MPTcpExtAddAddr")
1563 if [ -z "$count" ]; then
1567 elif [ "$count" != "$add_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_nr" ]; }; then
1568 fail_test "got $count ADD_ADDR[s] expected $add_nr"
1574 count=$(mptcp_lib_get_counter ${ns_tx} "MPTcpExtEchoAdd")
1575 if [ -z "$count" ]; then
1577 elif [ "$count" != "$echo_nr" ]; then
1578 fail_test "got $count ADD_ADDR echo[s] expected $echo_nr"
1585 count=$(mptcp_lib_get_counter ${ns_rx} "MPTcpExtPortAdd")
1586 if [ -z "$count" ]; then
1588 elif [ "$count" != "$port_nr" ]; then
1589 fail_test "got $count ADD_ADDR[s] with a port-number expected $port_nr"
1595 count=$(mptcp_lib_get_counter ${ns_tx} "MPTcpExtMPJoinPortSynRx")
1596 if [ -z "$count" ]; then
1598 elif [ "$count" != "$syn_nr" ]; then
1599 fail_test "got $count JOIN[s] syn with a different \
1606 count=$(mptcp_lib_get_counter ${ns_rx} "MPTcpExtMPJoinPortSynAckRx")
1607 if [ -z "$count" ]; then
1609 elif [ "$count" != "$syn_ack_nr" ]; then
1610 fail_test "got $count JOIN[s] synack with a different \
1617 count=$(mptcp_lib_get_counter ${ns_tx} "MPTcpExtMPJoinPortAckRx")
1618 if [ -z "$count" ]; then
1620 elif [ "$count" != "$ack_nr" ]; then
1621 fail_test "got $count JOIN[s] ack with a different \
1628 count=$(mptcp_lib_get_counter ${ns_tx} "MPTcpExtMismatchPortSynRx")
1629 if [ -z "$count" ]; then
1631 elif [ "$count" != "$mis_syn_nr" ]; then
1632 fail_test "got $count JOIN[s] syn with a mismatched \
1639 count=$(mptcp_lib_get_counter ${ns_tx} "MPTcpExtMismatchPortAckRx")
1640 if [ -z "$count" ]; then
1642 elif [ "$count" != "$mis_ack_nr" ]; then
1643 fail_test "got $count JOIN[s] ack with a mismatched \
1656 local count
1661 count=$(mptcp_lib_get_counter ${ns1} "MPTcpExtAddAddrTx")
1662 if [ -z "$count" ]; then
1666 …elif [ "$count" != "$add_tx_nr" ] && { [ "$timeout" -gt 1 ] || [ "$count" -lt "$add_tx_nr" ]; }; t…
1667 fail_test "got $count ADD_ADDR[s] TX, expected $add_tx_nr"
1673 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtEchoAddTx")
1674 if [ -z "$count" ]; then
1676 elif [ "$count" != "$echo_tx_nr" ]; then
1677 fail_test "got $count ADD_ADDR echo[s] TX, expected $echo_tx_nr"
1689 local count
1711 count=$(mptcp_lib_get_counter ${addr_ns} "MPTcpExtRmAddr")
1712 if [ -z "$count" ]; then
1714 elif [ "$count" != "$rm_addr_nr" ]; then
1715 fail_test "got $count RM_ADDR[s] expected $rm_addr_nr"
1721 count=$(mptcp_lib_get_counter ${subflow_ns} "MPTcpExtRmSubflow")
1722 if [ -z "$count" ]; then
1731 count=$((count + cnt))
1732 if [ "$count" != "$rm_subflow_nr" ]; then
1733 suffix="$count in [$rm_subflow_nr:$((rm_subflow_nr*2))]"
1736 if [ $count -ge "$rm_subflow_nr" ] && \
1737 [ "$count" -le "$((rm_subflow_nr *2 ))" ]; then
1740 fail_test "got $count RM_SUBFLOW[s] expected in range [$rm_subflow_nr:$((rm_subflow_nr*2))]"
1742 elif [ "$count" != "$rm_subflow_nr" ]; then
1743 fail_test "got $count RM_SUBFLOW[s] expected $rm_subflow_nr"
1756 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtRmAddrTx")
1757 if [ -z "$count" ]; then
1759 elif [ "$count" != "$rm_addr_tx_nr" ]; then
1760 fail_test "got $count RM_ADDR[s] expected $rm_addr_tx_nr"
1772 local count
1775 count=$(mptcp_lib_get_counter ${ns1} "MPTcpExtMPPrioTx")
1776 if [ -z "$count" ]; then
1778 elif [ "$count" != "$mp_prio_nr_tx" ]; then
1779 fail_test "got $count MP_PRIO[s] TX expected $mp_prio_nr_tx"
1785 count=$(mptcp_lib_get_counter ${ns1} "MPTcpExtMPPrioRx")
1786 if [ -z "$count" ]; then
1788 elif [ "$count" != "$mp_prio_nr_rx" ]; then
1789 fail_test "got $count MP_PRIO[s] RX expected $mp_prio_nr_rx"
1795 count=$(mptcp_lib_get_counter ${ns1} "MPTcpExtMPJoinSynBackupRx")
1796 if [ -z "$count" ]; then
1798 elif [ "$count" != "$mpj_syn" ]; then
1799 fail_test "got $count JOIN[s] syn with Backup expected $mpj_syn"
1805 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtMPJoinSynAckBackupRx")
1806 if [ -z "$count" ]; then
1808 elif [ "$count" != "$mpj_syn_ack" ]; then
1809 fail_test "got $count JOIN[s] synack with Backup expected $mpj_syn_ack"
2930 count=$(mptcp_lib_get_counter ${ns1} "MPTcpExtMPCapableEndpAttempt")
2931 if [ -z "$count" ]; then
2933 elif [ "$count" != "$attempts" ]; then
2934 fail_test "got ${count} MPC attempt[s] on port-based endpoint, expected ${attempts}"
3033 local port retl count
3507 local count
3520 count=$(grep -cw "type:${evt}" "${evts}")
3521 if [ "${count}" != "${exp}" ]; then
3522 fail_test "got ${count} events, expected ${exp}"