Home
last modified time | relevance | path

Searched refs:sndbuf_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
314 optlen = sizeof(sndbuf_actual); in iperf_tcp_listen()
315 if (getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sndbuf_actual, &optlen) < 0) { in iperf_tcp_listen()
323 printf("SNDBUF is %u, expecting %u\n", sndbuf_actual, test->settings->socket_bufsize); in iperf_tcp_listen()
325 if (test->settings->socket_bufsize && test->settings->socket_bufsize > sndbuf_actual) { in iperf_tcp_listen()
349 cJSON_AddNumberToObject(test->json_start, "sndbuf_actual", sndbuf_actual); in iperf_tcp_listen()
372 int rcvbuf_actual, sndbuf_actual; in iperf_tcp_connect() local
506 optlen = sizeof(sndbuf_actual); in iperf_tcp_connect()
507 if (getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sndbuf_actual, &optlen) < 0) { in iperf_tcp_connect()
516 printf("SNDBUF is %u, expecting %u\n", sndbuf_actual, test->settings->socket_bufsize); in iperf_tcp_connect()
[all …]
Diperf_udp.c263 int sndbuf_actual, rcvbuf_actual; in iperf_udp_buffercheck() local
284 optlen = sizeof(sndbuf_actual); in iperf_udp_buffercheck()
285 if (getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sndbuf_actual, &optlen) < 0) { in iperf_udp_buffercheck()
290 printf("SNDBUF is %u, expecting %u\n", sndbuf_actual, test->settings->socket_bufsize); in iperf_udp_buffercheck()
292 if (test->settings->socket_bufsize && test->settings->socket_bufsize > sndbuf_actual) { in iperf_udp_buffercheck()
296 if (test->settings->blksize > sndbuf_actual) { in iperf_udp_buffercheck()
300 test->settings->blksize, sndbuf_actual); in iperf_udp_buffercheck()
329 cJSON_AddNumberToObject(test->json_start, "sndbuf_actual", sndbuf_actual); in iperf_udp_buffercheck()