Searched refs:afd (Results 1 – 2 of 2) sorted by relevance
/bionic/libc/dns/net/ |
D | getnameinfo.c | 74 static const struct afd { struct 170 const struct afd *afd; in getnameinfo_inet() local 190 afd = &afdl[i]; in getnameinfo_inet() 198 if (salen < afd->a_socklen) { in getnameinfo_inet() 204 addr = (const char *)(const void *)sa + afd->a_off; in getnameinfo_inet() 283 switch(afd->a_af) { in getnameinfo_inet() 296 if (inet_ntop(afd->a_af, addr, numaddr, sizeof(numaddr)) in getnameinfo_inet() 306 hp = android_gethostbyaddrfornet_proxy(addr, afd->a_addrlen, afd->a_af, netid, mark); in getnameinfo_inet() 328 switch(afd->a_af) { in getnameinfo_inet() 342 if (inet_ntop(afd->a_af, addr, host, in getnameinfo_inet()
|
D | getaddrinfo.c | 140 static const struct afd { struct 231 const struct afd *, const char *); 234 static const struct afd *find_afd(int); 275 #define GET_AI(ai, afd, addr) \ argument 278 (ai) = get_ai(pai, (afd), (addr)); \ 861 const struct afd *afd; in explore_null() local 891 afd = find_afd(pai->ai_family); in explore_null() 892 if (afd == NULL) in explore_null() 896 GET_AI(cur->ai_next, afd, afd->a_addrany); in explore_null() 902 GET_AI(cur->ai_next, afd, afd->a_loopback); in explore_null() [all …]
|