Lines Matching refs:hints
171 struct addrinfo hints, *res, *res0 = NULL; in sock_hostname() local
213 memset(&hints, 0, sizeof(hints)); in sock_hostname()
214 hints.ai_family = sin->sa_family; in sock_hostname()
215 hints.ai_socktype = SOCK_STREAM; in sock_hostname()
216 hints.ai_flags = AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST; in sock_hostname()
217 if ((err = getaddrinfo(host->name, NULL, &hints, &res0)) == 0) { in sock_hostname()
242 memset(&hints, 0, sizeof(hints)); in sock_hostname()
243 hints.ai_family = sin->sa_family; in sock_hostname()
244 hints.ai_socktype = SOCK_STREAM; in sock_hostname()
245 hints.ai_flags = AI_PASSIVE | AI_CANONNAME; in sock_hostname()
246 if (getaddrinfo(host->name, NULL, &hints, &res0) != 0) { in sock_hostname()