Searched refs:local_res (Results 1 – 3 of 3) sorted by relevance
/external/iperf3/src/ |
D | net.c | 118 struct addrinfo hints, *local_res, *server_res; in netdial() local 125 if (getaddrinfo(local, NULL, &hints, &local_res) != 0) in netdial() 138 freeaddrinfo(local_res); in netdial() 147 lcladdr = (struct sockaddr_in *)local_res->ai_addr; in netdial() 151 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { in netdial() 154 freeaddrinfo(local_res); in netdial() 159 freeaddrinfo(local_res); in netdial()
|
D | iperf_sctp.c | 263 struct addrinfo hints, *local_res, *server_res; in iperf_sctp_connect() local 269 if (getaddrinfo(test->bind_address, NULL, &hints, &local_res) != 0) { in iperf_sctp_connect() 281 freeaddrinfo(local_res); in iperf_sctp_connect() 289 freeaddrinfo(local_res); in iperf_sctp_connect() 301 lcladdr = (struct sockaddr_in *)local_res->ai_addr; in iperf_sctp_connect() 304 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { in iperf_sctp_connect() 307 freeaddrinfo(local_res); in iperf_sctp_connect() 313 freeaddrinfo(local_res); in iperf_sctp_connect()
|
D | iperf_tcp.c | 367 struct addrinfo hints, *local_res, *server_res; in iperf_tcp_connect() local 378 if (getaddrinfo(test->bind_address, NULL, &hints, &local_res) != 0) { in iperf_tcp_connect() 390 freeaddrinfo(local_res); in iperf_tcp_connect() 397 freeaddrinfo(local_res); in iperf_tcp_connect() 409 lcladdr = (struct sockaddr_in *)local_res->ai_addr; in iperf_tcp_connect() 412 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { in iperf_tcp_connect() 415 freeaddrinfo(local_res); in iperf_tcp_connect() 421 freeaddrinfo(local_res); in iperf_tcp_connect()
|