Home
last modified time | relevance | path

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

/bionic/libc/netbsd/net/
Dgetnameinfo.c74 static const struct afd { struct
184 const struct afd *afd; in getnameinfo_inet() local
204 afd = &afdl[i]; in getnameinfo_inet()
212 if (salen < afd->a_socklen) { in getnameinfo_inet()
218 addr = (const char *)(const void *)sa + afd->a_off; in getnameinfo_inet()
297 switch(afd->a_af) { in getnameinfo_inet()
310 if (inet_ntop(afd->a_af, addr, numaddr, sizeof(numaddr)) in getnameinfo_inet()
324 MAXDNAME, addr, afd->a_addrlen, afd->a_af, iface); in getnameinfo_inet()
331 hp = android_gethostbyaddrforiface(addr, afd->a_addrlen, afd->a_af, iface); in getnameinfo_inet()
354 switch(afd->a_af) { in getnameinfo_inet()
[all …]
Dgetaddrinfo.c136 static const struct afd { struct
227 const struct afd *, const char *);
230 static const struct afd *find_afd(int);
270 #define GET_AI(ai, afd, addr) \ argument
273 (ai) = get_ai(pai, (afd), (addr)); \
862 const struct afd *afd; in explore_null() local
892 afd = find_afd(pai->ai_family); in explore_null()
893 if (afd == NULL) in explore_null()
897 GET_AI(cur->ai_next, afd, afd->a_addrany); in explore_null()
903 GET_AI(cur->ai_next, afd, afd->a_loopback); in explore_null()
[all …]