Home
last modified time | relevance | path

Searched refs:afd (Results 1 – 2 of 2) sorted by relevance

/bionic/libc/dns/net/
Dgetnameinfo.c80 static const struct afd { struct
177 const struct afd *afd; in getnameinfo_inet() local
197 afd = &afdl[i]; in getnameinfo_inet()
205 if (salen < afd->a_socklen) { in getnameinfo_inet()
211 addr = (const char *)(const void *)sa + afd->a_off; in getnameinfo_inet()
292 switch(afd->a_af) { in getnameinfo_inet()
305 if (inet_ntop(afd->a_af, addr, numaddr, sizeof(numaddr)) in getnameinfo_inet()
318 hp = android_gethostbyaddrfornetcontext_proxy(addr, afd->a_addrlen, afd->a_af, &netcontext); in getnameinfo_inet()
340 switch(afd->a_af) { in getnameinfo_inet()
354 if (inet_ntop(afd->a_af, addr, host, in getnameinfo_inet()
Dgetaddrinfo.c139 static const struct afd { struct
230 const struct afd *, const char *);
233 static const struct afd *find_afd(int);
274 #define GET_AI(ai, afd, addr) \ argument
277 (ai) = get_ai(pai, (afd), (addr)); \
866 const struct afd *afd; in explore_null() local
896 afd = find_afd(pai->ai_family); in explore_null()
897 if (afd == NULL) in explore_null()
901 GET_AI(cur->ai_next, afd, afd->a_addrany); in explore_null()
907 GET_AI(cur->ai_next, afd, afd->a_loopback); in explore_null()
[all …]