Searched refs:AF_INET (Results 1 – 15 of 15) sorted by relevance
/bionic/libc/bionic/ |
D | bindresvport.c | 48 sin->sin_family = AF_INET; in bindresvport() 49 } else if (sin->sin_family != AF_INET) { in bindresvport()
|
D | if_nametoindex.c | 51 if ((ctl_sock = socket(AF_INET, SOCK_DGRAM, 0)) >= 0) { in if_nametoindex()
|
D | if_indextoname.c | 52 if ((ctl_sock = socket(AF_INET, SOCK_DGRAM, 0)) >= 0) { in if_indextoname()
|
/bionic/libc/upstream-netbsd/libc/inet/ |
D | inet_ntoa.c | 62 (void) inet_ntop(AF_INET, &in, ret, (socklen_t)sizeof ret); in __weak_alias()
|
D | inet_ntop.c | 76 case AF_INET: in inet_ntop()
|
D | inet_pton.c | 77 case AF_INET: in inet_pton()
|
/bionic/tests/ |
D | netdb_test.cpp | 36 ss.ss_family = AF_INET; in TEST()
|
/bionic/libc/netbsd/ |
D | gethnamaddr.c | 506 hp = gethostbyname_internal(name, AF_INET, res, NULL); in gethostbyname() 638 case AF_INET: in gethostbyname_internal_real() 838 af = AF_INET; in android_gethostbyaddrforiface_real() 842 case AF_INET: in android_gethostbyaddrforiface_real() 938 } else if (inet_pton(AF_INET, p, (char *)(void *)rs->host_addr) > 0) { in _gethtent() 948 af = AF_INET; in _gethtent() 1009 hp = _gethtbyname2(name, AF_INET); in _gethtbyname() 1175 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ) in map_v4v6_hostent() 1264 case AF_INET: in _dns_gethtbyname() 1328 case AF_INET: in _dns_gethtbyaddr() [all …]
|
/bionic/libc/include/sys/ |
D | socket.h | 143 #define AF_INET 2 macro 184 #define PF_INET AF_INET
|
/bionic/libc/netbsd/net/ |
D | getnameinfo.c | 117 case AF_INET: in android_getnameinfoforiface() 247 case AF_INET: in getnameinfo_inet()
|
D | getaddrinfo.c | 398 .sin_family = AF_INET, in _have_ipv4() 954 case AF_INET: in explore_numeric() 1151 case AF_INET: in get_port() 1208 case AF_INET: in get_port() 1453 ai.ai_family = (type == T_A) ? AF_INET : AF_INET6; in getanswer() 1512 } else if (addr->sa_family == AF_INET) { in _get_scope() 1558 if (addr->sa_family == AF_INET) { in _get_label() 1600 if (addr->sa_family == AF_INET) { in _get_precedence() 1776 case AF_INET: in _find_src_addr() 1950 case AF_INET: in _dns_getaddrinfo()
|
/bionic/libc/netbsd/resolv/ |
D | res_send.c | 183 case AF_INET: in random_bind() 200 if (family == AF_INET) in random_bind() 211 if (family == AF_INET) in random_bind() 240 case AF_INET: in res_ourserver_p() 685 if (sa->sa_family == AF_INET) 1293 case AF_INET: in sock_eq()
|
D | res_init.c | 198 u[nserv].sin.sin_family = AF_INET; in __res_vinit() 710 case AF_INET: in res_setservers() 762 case AF_INET: in res_getservers()
|
D | res_debug.c | 677 case AF_INET: in p_sockun() 678 inet_ntop(AF_INET, &u.sin.sin_addr, ret, sizeof ret); in p_sockun()
|
/bionic/libc/netbsd/nameser/ |
D | ns_print.c | 169 (void) inet_ntop(AF_INET, rdata, buf, buflen); in ns_sprintrrf() 428 (void) inet_ntop(AF_INET, rdata, buf, buflen); in ns_sprintrrf()
|