Lines Matching refs:hints
135 struct addrinfo hints, *res, *r; in checkhost() local
145 memset(&hints, 0, sizeof(hints)); in checkhost()
146 hints.ai_family = raddr->sa_family; in checkhost()
147 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in checkhost()
149 error = getaddrinfo(lhost, "0", &hints, &res); in checkhost()
182 struct addrinfo hints, *res, *r; in gethostloop() local
197 memset(&hints, 0, sizeof(hints)); in gethostloop()
198 hints.ai_family = raddr->sa_family; in gethostloop()
199 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in gethostloop()
200 hints.ai_flags = AI_CANONNAME; in gethostloop()
202 error = getaddrinfo(remotehost, "0", &hints, &res); in gethostloop()
231 struct addrinfo hints; in main() local
234 memset(&hints, 0, sizeof(hints)); in main()
235 hints.ai_family = PF_UNSPEC; in main()
236 hints.ai_socktype = SOCK_STREAM; in main()
240 int error = getaddrinfo(argv[i], NULL, &hints, &res0); in main()