Home
last modified time | relevance | path

Searched refs:sndbuf_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
315 optlen = sizeof(sndbuf_actual); in iperf_tcp_listen()
316 if (getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sndbuf_actual, &optlen) < 0) { in iperf_tcp_listen()
324 printf("SNDBUF is %u, expecting %u\n", sndbuf_actual, test->settings->socket_bufsize); in iperf_tcp_listen()
326 if (test->settings->socket_bufsize && test->settings->socket_bufsize > sndbuf_actual) { in iperf_tcp_listen()
350 cJSON_AddNumberToObject(test->json_start, "sndbuf_actual", sndbuf_actual); in iperf_tcp_listen()
373 int rcvbuf_actual, sndbuf_actual; in iperf_tcp_connect() local
507 optlen = sizeof(sndbuf_actual); in iperf_tcp_connect()
508 if (getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sndbuf_actual, &optlen) < 0) { in iperf_tcp_connect()
517 printf("SNDBUF is %u, expecting %u\n", sndbuf_actual, test->settings->socket_bufsize); in iperf_tcp_connect()
[all …]
Diperf_udp.c286 int sndbuf_actual, rcvbuf_actual; in iperf_udp_buffercheck() local
307 optlen = sizeof(sndbuf_actual); in iperf_udp_buffercheck()
308 if (getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sndbuf_actual, &optlen) < 0) { in iperf_udp_buffercheck()
313 printf("SNDBUF is %u, expecting %u\n", sndbuf_actual, test->settings->socket_bufsize); in iperf_udp_buffercheck()
315 if (test->settings->socket_bufsize && test->settings->socket_bufsize > sndbuf_actual) { in iperf_udp_buffercheck()
319 if (test->settings->blksize > sndbuf_actual) { in iperf_udp_buffercheck()
323 test->settings->blksize, sndbuf_actual); in iperf_udp_buffercheck()
352 cJSON_AddNumberToObject(test->json_start, "sndbuf_actual", sndbuf_actual); in iperf_udp_buffercheck()