• Home
  • Raw
  • Download

Lines Matching refs:server_res

368     struct addrinfo hints, *local_res, *server_res;  in iperf_tcp_connect()  local
389 if ((gerror = getaddrinfo(test->server_hostname, portstr, &hints, &server_res)) != 0) { in iperf_tcp_connect()
396 if ((s = socket(server_res->ai_family, SOCK_STREAM, 0)) < 0) { in iperf_tcp_connect()
399 freeaddrinfo(server_res); in iperf_tcp_connect()
417 freeaddrinfo(server_res); in iperf_tcp_connect()
430 if (server_res->ai_family == AF_INET) { in iperf_tcp_connect()
438 else if (server_res->ai_family == AF_INET6) { in iperf_tcp_connect()
449 freeaddrinfo(server_res); in iperf_tcp_connect()
458 freeaddrinfo(server_res); in iperf_tcp_connect()
471 freeaddrinfo(server_res); in iperf_tcp_connect()
481 freeaddrinfo(server_res); in iperf_tcp_connect()
491 freeaddrinfo(server_res); in iperf_tcp_connect()
499 freeaddrinfo(server_res); in iperf_tcp_connect()
511 freeaddrinfo(server_res); in iperf_tcp_connect()
529 freeaddrinfo(server_res); in iperf_tcp_connect()
550 if (server_res->ai_addr->sa_family != AF_INET6) { in iperf_tcp_connect()
553 freeaddrinfo(server_res); in iperf_tcp_connect()
558 struct sockaddr_in6* sa6P = (struct sockaddr_in6*) server_res->ai_addr; in iperf_tcp_connect()
573 freeaddrinfo(server_res); in iperf_tcp_connect()
584 freeaddrinfo(server_res); in iperf_tcp_connect()
617 …if (connect(s, (struct sockaddr *) server_res->ai_addr, server_res->ai_addrlen) < 0 && errno != EI… in iperf_tcp_connect()
620 freeaddrinfo(server_res); in iperf_tcp_connect()
626 freeaddrinfo(server_res); in iperf_tcp_connect()