Home
last modified time | relevance | path

Searched refs:AF_INET (Results 1 – 15 of 15) sorted by relevance

/bionic/libc/bionic/
Dbindresvport.c48 sin->sin_family = AF_INET; in bindresvport()
49 } else if (sin->sin_family != AF_INET) { in bindresvport()
Dif_nametoindex.c51 if ((ctl_sock = socket(AF_INET, SOCK_DGRAM, 0)) >= 0) { in if_nametoindex()
Dif_indextoname.c52 if ((ctl_sock = socket(AF_INET, SOCK_DGRAM, 0)) >= 0) { in if_indextoname()
/bionic/libc/upstream-netbsd/libc/inet/
Dinet_ntoa.c62 (void) inet_ntop(AF_INET, &in, ret, (socklen_t)sizeof ret); in __weak_alias()
Dinet_ntop.c76 case AF_INET: in inet_ntop()
Dinet_pton.c77 case AF_INET: in inet_pton()
/bionic/tests/
Dnetdb_test.cpp36 ss.ss_family = AF_INET; in TEST()
/bionic/libc/netbsd/
Dgethnamaddr.c506 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/
Dsocket.h143 #define AF_INET 2 macro
184 #define PF_INET AF_INET
/bionic/libc/netbsd/net/
Dgetnameinfo.c117 case AF_INET: in android_getnameinfoforiface()
247 case AF_INET: in getnameinfo_inet()
Dgetaddrinfo.c398 .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/
Dres_send.c183 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()
Dres_init.c198 u[nserv].sin.sin_family = AF_INET; in __res_vinit()
710 case AF_INET: in res_setservers()
762 case AF_INET: in res_getservers()
Dres_debug.c677 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/
Dns_print.c169 (void) inet_ntop(AF_INET, rdata, buf, buflen); in ns_sprintrrf()
428 (void) inet_ntop(AF_INET, rdata, buf, buflen); in ns_sprintrrf()