Home
last modified time | relevance | path

Searched refs:local_res (Results 1 – 3 of 3) sorted by relevance

/external/iperf3/src/
Dnet.c126 struct addrinfo hints, *local_res, *server_res; in netdial() local
133 if ((gerror = getaddrinfo(local, NULL, &hints, &local_res)) != 0) in netdial()
146 freeaddrinfo(local_res); in netdial()
155 lcladdr = (struct sockaddr_in *)local_res->ai_addr; in netdial()
159 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { in netdial()
162 freeaddrinfo(local_res); in netdial()
167 freeaddrinfo(local_res); in netdial()
Diperf_tcp.c368 struct addrinfo hints, *local_res, *server_res; in iperf_tcp_connect() local
379 if ((gerror = getaddrinfo(test->bind_address, NULL, &hints, &local_res)) != 0) { in iperf_tcp_connect()
391 freeaddrinfo(local_res); in iperf_tcp_connect()
398 freeaddrinfo(local_res); in iperf_tcp_connect()
410 lcladdr = (struct sockaddr_in *)local_res->ai_addr; in iperf_tcp_connect()
413 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { in iperf_tcp_connect()
416 freeaddrinfo(local_res); in iperf_tcp_connect()
422 freeaddrinfo(local_res); in iperf_tcp_connect()
Diperf_sctp.c287 struct addrinfo hints, *local_res, *server_res; in iperf_sctp_connect() local
293 if ((gerror = getaddrinfo(test->bind_address, NULL, &hints, &local_res)) != 0) { in iperf_sctp_connect()
305 freeaddrinfo(local_res); in iperf_sctp_connect()
313 freeaddrinfo(local_res); in iperf_sctp_connect()
345 lcladdr = (struct sockaddr_in *)local_res->ai_addr; in iperf_sctp_connect()
348 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { in iperf_sctp_connect()
351 freeaddrinfo(local_res); in iperf_sctp_connect()
357 freeaddrinfo(local_res); in iperf_sctp_connect()