Lines Matching refs:hints
163 struct addrinfo hints, *res; in iperf_sctp_listen() local
170 memset(&hints, 0, sizeof(hints)); in iperf_sctp_listen()
177 hints.ai_family = AF_INET6; in iperf_sctp_listen()
179 hints.ai_family = test->settings->domain; in iperf_sctp_listen()
181 hints.ai_socktype = SOCK_STREAM; in iperf_sctp_listen()
182 hints.ai_flags = AI_PASSIVE; in iperf_sctp_listen()
183 if ((gerror = getaddrinfo(test->bind_address, portstr, &hints, &res)) != 0) { in iperf_sctp_listen()
302 struct addrinfo hints, *local_res = NULL, *server_res = NULL; in iperf_sctp_connect() local
305 memset(&hints, 0, sizeof(hints)); in iperf_sctp_connect()
306 hints.ai_family = test->settings->domain; in iperf_sctp_connect()
307 hints.ai_socktype = SOCK_STREAM; in iperf_sctp_connect()
308 if ((gerror = getaddrinfo(test->bind_address, NULL, &hints, &local_res)) != 0) { in iperf_sctp_connect()
314 memset(&hints, 0, sizeof(hints)); in iperf_sctp_connect()
315 hints.ai_family = test->settings->domain; in iperf_sctp_connect()
316 hints.ai_socktype = SOCK_STREAM; in iperf_sctp_connect()
318 if ((gerror = getaddrinfo(test->server_hostname, portstr, &hints, &server_res)) != 0) { in iperf_sctp_connect()
586 struct addrinfo hints; in iperf_sctp_bindx() local
606 memset(&hints, 0, sizeof(hints)); in iperf_sctp_bindx()
607 hints.ai_family = (domain == AF_UNSPEC ? AF_INET6 : domain); in iperf_sctp_bindx()
608 hints.ai_socktype = SOCK_STREAM; in iperf_sctp_bindx()
611 hints.ai_flags |= AI_PASSIVE; in iperf_sctp_bindx()
629 if ((gerror = getaddrinfo(xbe0->name, servname, &hints, &xbe0->ai)) != 0) { in iperf_sctp_bindx()
673 if ((gerror = getaddrinfo(xbe->name, servname, &hints, &xbe->ai)) != 0) { in iperf_sctp_bindx()