Home
last modified time | relevance | path

Searched refs:s_addr (Results 1 – 14 of 14) 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 …]
Dnetinet_in_test.cpp90 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in TEST()
91 mreq.imr_multiaddr.s_addr = htonl(INADDR_ANY); in TEST()
92 mreq.imr_sourceaddr.s_addr = htonl(INADDR_ANY); in TEST()
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/include/bits/
Din_addr.h44 in_addr_t s_addr; member
/bionic/libc/upstream-openbsd/lib/libc/net/
Dinet_lnaof.c42 in_addr_t i = ntohl(in.s_addr); in inet_lnaof()
Dinet_netof.c41 in_addr_t i = ntohl(in.s_addr); in inet_netof()
/bionic/tests/headers/posix/
Dnetinet_in_h.c41 STRUCT_MEMBER(struct in_addr, in_addr_t, s_addr); in netinet_in_h()
/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.c235 (srv->sin_addr.s_addr == INADDR_ANY || in res_ourserver_p()
236 srv->sin_addr.s_addr == inp->sin_addr.s_addr)) in res_ourserver_p()
1338 a4->sin_addr.s_addr == b4->sin_addr.s_addr; in sock_eq()
/bionic/libc/dns/net/
Dgetnameinfo.c243 (const void *)sa)->sin_addr.s_addr); in getnameinfo_inet()
Dgethnamaddr.c1104 if (res->sort_list[j].addr.s_addr == in addrsort()
1105 (((struct in_addr *)(void *)(*p))->s_addr & in addrsort()
Dgetaddrinfo.c388 .sin_addr.s_addr = __constant_htonl(0x08080808L) // 8.8.8.8 in _have_ipv4()
1532 unsigned long int na = ntohl(addr4->sin_addr.s_addr); in _get_scope()