Home
last modified time | relevance | path

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

/external/iperf3/src/
Diperf_tcp.c151 int rcvbuf_actual, sndbuf_actual; in iperf_tcp_listen() local
331 optlen = sizeof(rcvbuf_actual); in iperf_tcp_listen()
332 if (getsockopt(s, SOL_SOCKET, SO_RCVBUF, &rcvbuf_actual, &optlen) < 0) { in iperf_tcp_listen()
340 printf("RCVBUF is %u, expecting %u\n", rcvbuf_actual, test->settings->socket_bufsize); in iperf_tcp_listen()
342 if (test->settings->socket_bufsize && test->settings->socket_bufsize > rcvbuf_actual) { in iperf_tcp_listen()
350 cJSON_AddNumberToObject(test->json_start, "rcvbuf_actual", rcvbuf_actual); in iperf_tcp_listen()
372 int rcvbuf_actual, sndbuf_actual; in iperf_tcp_connect() local
524 optlen = sizeof(rcvbuf_actual); in iperf_tcp_connect()
525 if (getsockopt(s, SOL_SOCKET, SO_RCVBUF, &rcvbuf_actual, &optlen) < 0) { in iperf_tcp_connect()
534 printf("RCVBUF is %u, expecting %u\n", rcvbuf_actual, test->settings->socket_bufsize); in iperf_tcp_connect()
[all …]
Diperf_udp.c263 int sndbuf_actual, rcvbuf_actual; in iperf_udp_buffercheck() local
306 optlen = sizeof(rcvbuf_actual); in iperf_udp_buffercheck()
307 if (getsockopt(s, SOL_SOCKET, SO_RCVBUF, &rcvbuf_actual, &optlen) < 0) { in iperf_udp_buffercheck()
312 printf("RCVBUF is %u, expecting %u\n", rcvbuf_actual, test->settings->socket_bufsize); in iperf_udp_buffercheck()
314 if (test->settings->socket_bufsize && test->settings->socket_bufsize > rcvbuf_actual) { in iperf_udp_buffercheck()
318 if (test->settings->blksize > rcvbuf_actual) { in iperf_udp_buffercheck()
322 test->settings->blksize, rcvbuf_actual); in iperf_udp_buffercheck()
330 cJSON_AddNumberToObject(test->json_start, "rcvbuf_actual", rcvbuf_actual); in iperf_udp_buffercheck()