Home
last modified time | relevance | path

Searched refs:s_addr (Results 1 – 12 of 12) sorted by relevance

/bionic/tests/
Darpa_inet_test.cpp29 a.s_addr = 0; in TEST()
31 ASSERT_EQ((htonl)(0x7f010203), a.s_addr); in TEST()
34 a.s_addr = 0; in TEST()
36 ASSERT_EQ((htonl)(0x7f010002), a.s_addr); in TEST()
39 a.s_addr = 0; in TEST()
41 ASSERT_EQ((htonl)(0x7f000001), a.s_addr); in TEST()
44 a.s_addr = 0; in TEST()
46 ASSERT_EQ((htonl)(0x7f000001), a.s_addr); in TEST()
49 a.s_addr = 0; in TEST()
51 ASSERT_EQ((htonl)(0xff000001), a.s_addr); in TEST()
[all …]
Difaddrs_test.cpp61 ASSERT_TRUE(ntohl(sa_inet4->sin_addr.s_addr) == INADDR_LOOPBACK); in TEST()
133 in_addr_t addr = sock->sin_addr.s_addr; in CheckAddressIsInSet()
148 inet_addrs[addr->ifa_name].insert(sock->sin_addr.s_addr); in TEST()
152 broad_addrs[addr->ifa_name].insert(sock->sin_addr.s_addr); in TEST()
Dnetdb_test.cpp148 addr.sin_addr.s_addr = htonl(0x7f000001); in TEST()
/bionic/libc/bionic/
Darpa_inet.cpp32 return inet_aton(cp, &addr) ? addr.s_addr : INADDR_NONE; in inet_addr()
70 if (addr != nullptr) addr->s_addr = htonl(result); in inet_aton()
/bionic/libc/upstream-openbsd/lib/libc/net/
Dinet_lnaof.c43 in_addr_t i = ntohl(in.s_addr); in inet_lnaof()
Dinet_netof.c42 in_addr_t i = ntohl(in.s_addr); in inet_netof()
/bionic/libc/kernel/uapi/linux/
Din.h96 __be32 s_addr; member
/bionic/libc/dns/resolv/
Dres_init.c206 u[nserv].sin.sin_addr.s_addr = INADDR_ANY; in __res_vinit()
414 statp->sort_list[nsort].mask = a.s_addr; in __res_vinit()
610 register uint32_t i = ntohl(in.s_addr); in net_mask()
Dres_send.c244 (srv->sin_addr.s_addr == INADDR_ANY || in res_ourserver_p()
245 srv->sin_addr.s_addr == inp->sin_addr.s_addr)) in res_ourserver_p()
1350 a4->sin_addr.s_addr == b4->sin_addr.s_addr; in sock_eq()
/bionic/libc/dns/net/
Dgetnameinfo.c233 (const void *)sa)->sin_addr.s_addr); in getnameinfo_inet()
Dgethnamaddr.c1135 if (res->sort_list[j].addr.s_addr == in addrsort()
1136 (((struct in_addr *)(void *)(*p))->s_addr & in addrsort()
Dgetaddrinfo.c385 .sin_addr.s_addr = __constant_htonl(0x08080808L) // 8.8.8.8 in _have_ipv4()
1527 unsigned long int na = ntohl(addr4->sin_addr.s_addr); in _get_scope()