Lines Matching refs:ai
262 struct addrinfo *ai; in printaddrinfo() local
267 for (ai = addrinfo; ai != NULL; ai = ai->ai_next) { in printaddrinfo()
269 if ((ai->ai_socktype >= 0) && in printaddrinfo()
270 ((size_t)ai->ai_socktype < __arraycount(socket_types)) && in printaddrinfo()
271 (socket_types[ai->ai_socktype] != NULL)) in printaddrinfo()
272 n = printf("%s", socket_types[ai->ai_socktype]); in printaddrinfo()
274 n = printf("%d", ai->ai_socktype); in printaddrinfo()
279 if ((ai->ai_family >= 0) && in printaddrinfo()
280 ((size_t)ai->ai_family < __arraycount(address_families)) && in printaddrinfo()
281 (address_families[ai->ai_family] != NULL)) in printaddrinfo()
282 n = printf(" %s", address_families[ai->ai_family]); in printaddrinfo()
284 n = printf(" %d", ai->ai_family); in printaddrinfo()
289 protoent = getprotobynumber(ai->ai_protocol); in printaddrinfo()
291 n = printf(" %d", ai->ai_protocol); in printaddrinfo()
298 switch (ai->ai_family) { in printaddrinfo()
302 ai->ai_addr); in printaddrinfo()
307 "%a %p %I %F %R %S", ai->ai_addr); in printaddrinfo()