Home
last modified time | relevance | path

Searched refs:rcvbuf_actual (Results 1 – 2 of 2) sorted by relevance

/external/iperf3/src/
Diperf_tcp.c152 int rcvbuf_actual, sndbuf_actual; in iperf_tcp_listen() local
332 optlen = sizeof(rcvbuf_actual); in iperf_tcp_listen()
333 if (getsockopt(s, SOL_SOCKET, SO_RCVBUF, &rcvbuf_actual, &optlen) < 0) { in iperf_tcp_listen()
341 printf("RCVBUF is %u, expecting %u\n", rcvbuf_actual, test->settings->socket_bufsize); in iperf_tcp_listen()
343 if (test->settings->socket_bufsize && test->settings->socket_bufsize > rcvbuf_actual) { in iperf_tcp_listen()
351 cJSON_AddNumberToObject(test->json_start, "rcvbuf_actual", rcvbuf_actual); in iperf_tcp_listen()
373 int rcvbuf_actual, sndbuf_actual; in iperf_tcp_connect() local
525 optlen = sizeof(rcvbuf_actual); in iperf_tcp_connect()
526 if (getsockopt(s, SOL_SOCKET, SO_RCVBUF, &rcvbuf_actual, &optlen) < 0) { in iperf_tcp_connect()
535 printf("RCVBUF is %u, expecting %u\n", rcvbuf_actual, test->settings->socket_bufsize); in iperf_tcp_connect()
[all …]
Diperf_udp.c286 int sndbuf_actual, rcvbuf_actual; in iperf_udp_buffercheck() local
329 optlen = sizeof(rcvbuf_actual); in iperf_udp_buffercheck()
330 if (getsockopt(s, SOL_SOCKET, SO_RCVBUF, &rcvbuf_actual, &optlen) < 0) { in iperf_udp_buffercheck()
335 printf("RCVBUF is %u, expecting %u\n", rcvbuf_actual, test->settings->socket_bufsize); in iperf_udp_buffercheck()
337 if (test->settings->socket_bufsize && test->settings->socket_bufsize > rcvbuf_actual) { in iperf_udp_buffercheck()
341 if (test->settings->blksize > rcvbuf_actual) { in iperf_udp_buffercheck()
345 test->settings->blksize, rcvbuf_actual); in iperf_udp_buffercheck()
353 cJSON_AddNumberToObject(test->json_start, "rcvbuf_actual", rcvbuf_actual); in iperf_udp_buffercheck()