Lines Matching refs:rcvbuf_actual
151 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()
536 if (test->settings->socket_bufsize && test->settings->socket_bufsize > rcvbuf_actual) { in iperf_tcp_connect()
544 cJSON_AddNumberToObject(test->json_start, "rcvbuf_actual", rcvbuf_actual); in iperf_tcp_connect()