Lines Matching refs:server_res
287 struct addrinfo hints, *local_res, *server_res; in iperf_sctp_connect() local
303 if ((gerror = getaddrinfo(test->server_hostname, portstr, &hints, &server_res)) != 0) { in iperf_sctp_connect()
310 s = socket(server_res->ai_family, SOCK_STREAM, IPPROTO_SCTP); in iperf_sctp_connect()
314 freeaddrinfo(server_res); in iperf_sctp_connect()
324 freeaddrinfo(server_res); in iperf_sctp_connect()
332 freeaddrinfo(server_res); in iperf_sctp_connect()
352 freeaddrinfo(server_res); in iperf_sctp_connect()
365 if (server_res->ai_family == AF_INET) { in iperf_sctp_connect()
373 else if (server_res->ai_family == AF_INET6) { in iperf_sctp_connect()
384 freeaddrinfo(server_res); in iperf_sctp_connect()
393 freeaddrinfo(server_res); in iperf_sctp_connect()
405 freeaddrinfo(server_res); in iperf_sctp_connect()
438 freeaddrinfo(server_res); in iperf_sctp_connect()
454 freeaddrinfo(server_res); in iperf_sctp_connect()
471 freeaddrinfo(server_res); in iperf_sctp_connect()
481 freeaddrinfo(server_res); in iperf_sctp_connect()
488 …if (connect(s, (struct sockaddr *) server_res->ai_addr, server_res->ai_addrlen) < 0 && errno != EI… in iperf_sctp_connect()
491 freeaddrinfo(server_res); in iperf_sctp_connect()
501 freeaddrinfo(server_res); in iperf_sctp_connect()
519 freeaddrinfo(server_res); in iperf_sctp_connect()
525 freeaddrinfo(server_res); in iperf_sctp_connect()