/bionic/tests/ |
D | arpa_inet_test.cpp | 57 ASSERT_EQ(1, inet_pton(AF_INET, "127.0.0.1", &ss)); in TEST() 60 ASSERT_STREQ("127.0.0.1", inet_ntop(AF_INET, &ss, s, INET_ADDRSTRLEN)); in TEST() 69 ASSERT_EQ(1, inet_pton(AF_INET, "127.0.0.1", &ss4)); in TEST() 76 ASSERT_STREQ("127.0.0.1", inet_ntop(AF_INET, &ss4, s4, INET_ADDRSTRLEN)); in TEST() 77 ASSERT_STREQ("127.0.0.1", inet_ntop(AF_INET, &ss4, s4, 2*INET_ADDRSTRLEN)); in TEST()
|
D | netdb_test.cpp | 56 ASSERT_TRUE(p->ai_family == AF_INET || p->ai_family == AF_INET6); in TEST() 83 hints.ai_family = AF_INET; in TEST() 94 ASSERT_EQ(AF_INET, tai->ai_family); in TEST() 120 ss.ss_family = AF_INET; in TEST() 147 addr.sin_family = AF_INET; in TEST() 178 ASSERT_EQ(hent->h_addrtype, AF_INET); in VerifyLocalhost() 191 hostent* hp = gethostbyname2("localhost", AF_INET); in TEST() 222 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST() 232 result = gethostbyname2_r("localhost", AF_INET, &hent2, buf2, sizeof(buf2), &hp2, &err); in TEST() 241 hostent *hp = gethostbyaddr(&addr, sizeof(addr), AF_INET); in TEST() [all …]
|
/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 | 51 if ((ctl_sock = socket(AF_INET, SOCK_DGRAM, 0)) >= 0) { in if_indextoname()
|
/bionic/libc/dns/net/ |
D | gethnamaddr.c | 532 *result = gethostbyname_internal(name, AF_INET, res, hp, buf, buflen, errorp, NETID_UNSET, in gethostbyname_r() 716 case AF_INET: in gethostbyname_internal_real() 891 af = AF_INET; in android_gethostbyaddrfornet_real() 895 case AF_INET: in android_gethostbyaddrfornet_real() 1008 if (inet_pton(AF_INET, p, &host_addr) <= 0) in netbsd_gethostent_r() 1019 af = AF_INET; in netbsd_gethostent_r() 1103 if (hp->h_addrtype != AF_INET || hp->h_length != NS_INADDRSZ) in map_v4v6_hostent() 1184 case AF_INET: in _dns_gethtbyname() 1253 case AF_INET: in _dns_gethtbyaddr() 1323 if (info->hp->h_addrtype == AF_INET && (res->options & RES_USE_INET6)) { in _dns_gethtbyaddr() [all …]
|
D | getnameinfo.c | 121 case AF_INET: in android_getnameinfofornet() 233 case AF_INET: in getnameinfo_inet()
|
D | getaddrinfo.c | 386 .sin_family = AF_INET, in _have_ipv4() 953 case AF_INET: in explore_numeric() 1150 case AF_INET: in get_port() 1207 case AF_INET: in get_port() 1452 ai.ai_family = (type == T_A) ? AF_INET : AF_INET6; in getanswer() 1511 } else if (addr->sa_family == AF_INET) { in _get_scope() 1557 if (addr->sa_family == AF_INET) { in _get_label() 1599 if (addr->sa_family == AF_INET) { in _get_precedence() 1775 case AF_INET: in _find_src_addr() 1934 case AF_INET: in _dns_getaddrinfo()
|
D | sethostent.c | 112 hp = _hf_gethtbyname2(name, AF_INET, info); in _hf_gethtbyname()
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | inet_pton.c | 51 case AF_INET: in inet_pton()
|
D | inet_ntop.c | 49 case AF_INET: in inet_ntop()
|
/bionic/libc/include/sys/ |
D | socket.h | 135 #define AF_INET 2 macro 176 #define PF_INET AF_INET
|
/bionic/libc/dns/resolv/ |
D | res_send.c | 184 case AF_INET: in random_bind() 201 if (family == AF_INET) in random_bind() 212 if (family == AF_INET) in random_bind() 241 case AF_INET: in res_ourserver_p() 685 if (sa->sa_family == AF_INET) 1311 case AF_INET: in sock_eq()
|
D | res_init.c | 209 u[nserv].sin.sin_family = AF_INET; in __res_vinit() 685 case AF_INET: in res_setservers() 736 case AF_INET: in res_getservers()
|
D | res_debug.c | 731 case AF_INET: in p_sockun() 732 inet_ntop(AF_INET, &u.sin.sin_addr, ret, (socklen_t)sizeof ret); in p_sockun()
|
/bionic/libc/dns/nameser/ |
D | ns_print.c | 163 (void) inet_ntop(AF_INET, rdata, buf, (socklen_t)buflen); in ns_sprintrrf() 424 (void) inet_ntop(AF_INET, rdata, buf, (socklen_t)buflen); in ns_sprintrrf() 963 (void) inet_ntop(AF_INET, rdata, buf, (socklen_t)buflen); in ns_sprintrrf()
|