Lines Matching refs:server_res
263 struct addrinfo hints, *local_res, *server_res; in iperf_sctp_connect() local
279 if (getaddrinfo(test->server_hostname, portstr, &hints, &server_res) != 0) { in iperf_sctp_connect()
286 s = socket(server_res->ai_family, SOCK_STREAM, IPPROTO_SCTP); in iperf_sctp_connect()
290 freeaddrinfo(server_res); in iperf_sctp_connect()
308 freeaddrinfo(server_res); in iperf_sctp_connect()
321 if (server_res->ai_family == AF_INET) { in iperf_sctp_connect()
329 else if (server_res->ai_family == AF_INET6) { in iperf_sctp_connect()
340 freeaddrinfo(server_res); in iperf_sctp_connect()
349 freeaddrinfo(server_res); in iperf_sctp_connect()
361 freeaddrinfo(server_res); in iperf_sctp_connect()
394 freeaddrinfo(server_res); in iperf_sctp_connect()
410 freeaddrinfo(server_res); in iperf_sctp_connect()
427 freeaddrinfo(server_res); in iperf_sctp_connect()
441 …if (connect(s, (struct sockaddr *) server_res->ai_addr, server_res->ai_addrlen) < 0 && errno != EI… in iperf_sctp_connect()
444 freeaddrinfo(server_res); in iperf_sctp_connect()
449 freeaddrinfo(server_res); in iperf_sctp_connect()
472 freeaddrinfo(server_res); in iperf_sctp_connect()