Lines Matching refs:addr

108   sockaddr_in6 *addr = reinterpret_cast<sockaddr_in6*>(ai->ai_addr);  in TEST()  local
109 ASSERT_EQ(addr->sin6_family, AF_INET6); in TEST()
110 ASSERT_EQ(0, memcmp(&addr->sin6_addr, &in6addr_loopback, sizeof(in6_addr))); in TEST()
144 sockaddr_in addr; in TEST() local
146 memset(&addr, 0, sizeof(sockaddr_in)); in TEST()
147 addr.sin_family = AF_INET; in TEST()
148 addr.sin_addr.s_addr = htonl(0x7f000001); in TEST()
149 ASSERT_EQ(0, getnameinfo(reinterpret_cast<sockaddr*>(&addr), sizeof(addr), in TEST()
162 sockaddr_in6 addr; in TEST() local
164 memset(&addr, 0, sizeof(sockaddr_in6)); in TEST()
165 addr.sin6_family = AF_INET6; in TEST()
166 addr.sin6_addr = in6addr_loopback; in TEST()
167 ASSERT_EQ(0, getnameinfo(reinterpret_cast<sockaddr*>(&addr), sizeof(addr), in TEST()
240 in_addr addr = { htonl(0x7f000001) }; in TEST() local
241 hostent *hp = gethostbyaddr(&addr, sizeof(addr), AF_INET); in TEST()
246 in_addr addr = { htonl(0x7f000001) }; in TEST() local
251 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
261 result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent2, buf2, sizeof(buf2), &hp2, &err); in TEST()
291 in_addr addr = { htonl(0x7f000001) }; in TEST() local
296 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
325 in_addr addr = { htonl(0xffffffff) }; in TEST() local
330 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()