Lines Matching refs:AF_INET
496 result = gethostbyname2("hello", AF_INET); in TEST_F()
541 result = gethostbyname2("hello", AF_INET); in TEST_F()
776 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
851 addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
926 addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
946 addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
964 addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
1235 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
1290 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
1722 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
1768 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
1833 int s = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP); in TEST_F()
1836 .sin_family = AF_INET, in TEST_F()
1839 ASSERT_TRUE(inet_pton(AF_INET, listen_addr, &tlsServer.sin_addr)); in TEST_F()
2308 EXPECT_EQ("1.2.3.4", toString(buf, res, AF_INET)); in TEST_F()
2325 EXPECT_EQ("1.2.3.4", toString(buf, res, AF_INET)); in TEST_F()
2426 EXPECT_EQ("1.2.3.4", toString(buf, res, AF_INET)); in TEST_F()
2499 EXPECT_EQ("1.2.3.4", toString(buf, rc, AF_INET)); in TEST_F()
2529 expectAnswersValid(fd3, AF_INET, "1.2.3.4"); in TEST_F()
2530 expectAnswersValid(fd2, AF_INET, "1.2.3.4"); in TEST_F()
2531 expectAnswersValid(fd1, AF_INET, "1.2.3.4"); in TEST_F()
2542 expectAnswersValid(fd1, AF_INET, "1.2.3.4"); in TEST_F()
2552 expectAnswersValid(fd1, AF_INET, "1.2.3.4"); in TEST_F()
2566 expectAnswersValid(fd2, AF_INET, "1.2.3.4"); in TEST_F()
2567 expectAnswersValid(fd1, AF_INET, "1.2.3.4"); in TEST_F()
2575 expectAnswersValid(fd1, AF_INET, "1.2.3.4"); in TEST_F()
2630 expectAnswersValid(fd1, AF_INET, "1.2.3.6"); in TEST_F()
2637 expectAnswersValid(fd1, AF_INET, "1.2.3.6"); in TEST_F()
2662 expectAnswersValid(fd, AF_INET, "1.2.3.4"); in TEST_F()
2676 expectAnswersValid(fd, AF_INET, "1.2.3.4"); in TEST_F()
2684 expectAnswersValid(fd, AF_INET, "1.2.3.4"); in TEST_F()
2782 EXPECT_EQ("1.2.3.4", toString(buf, res, AF_INET)); in TEST_F()
2811 EXPECT_EQ("1.2.3.4", toString(buf, res, AF_INET)); in TEST_F()
2989 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
3043 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
3075 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
3156 hints.ai_family = AF_INET; in TEST_F()
3438 inet_pton(AF_INET, "1.2.3.4", &v4addr); in TEST_F()
3439 result = gethostbyaddr(&v4addr, sizeof(v4addr), AF_INET); in TEST_F()
3570 ASSERT_TRUE(inet_pton(AF_INET, address, &v4addr)); in TEST_F()
3571 hostent* result = gethostbyaddr(&v4addr, sizeof(v4addr), AF_INET); in TEST_F()
3613 {NI_NAMEREQD, AF_INET, "1.2.3.4", "v4v6.example.com"}, in TEST_F()
3614 {NI_NUMERICHOST, AF_INET, "1.2.3.4", "1.2.3.4"}, in TEST_F()
3615 {0, AF_INET, "1.2.3.4", "v4v6.example.com"}, in TEST_F()
3616 {0, AF_INET, "5.6.7.8", "5.6.7.8"}, // unmapped in TEST_F()
3632 if (config.family == AF_INET) { in TEST_F()
3634 sin.sin_family = AF_INET; in TEST_F()
3635 inet_pton(AF_INET, config.addr.c_str(), &sin.sin_addr); in TEST_F()
3796 sockaddr_in sin = {.sin_family = AF_INET}; in TEST_F()
3797 ASSERT_TRUE(inet_pton(AF_INET, address, &sin.sin_addr)); in TEST_F()
3851 struct hostent* result = gethostbyname2("v4v6", AF_INET); in TEST_F()
4309 EXPECT_EQ("1.2.3.4", toString(buf1, res1, AF_INET)); in TEST_F()
4406 EXPECT_EQ("1.2.3.4", toString(buf, res1, AF_INET)); in TEST_F()
4435 EXPECT_EQ("1.2.3.4", toString(buf, res, AF_INET)); in TEST_F()
4508 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
4610 : expectAnswersValid(fd, AF_INET, "1.2.3.4"); in TEST_F()
4633 expectAnswersValid(fd, AF_INET, "1.2.3.4"); in TEST_F()
4684 expectAnswersValid(fd, AF_INET, "1.2.3.4"); in TEST_F()
4699 expectAnswersValid(fd, AF_INET, "1.2.3.5"); in TEST_F()
4814 : expectAnswersValid(fd, AF_INET, "1.2.3.4"); in TEST_F()
4841 expectAnswersValid(fd, AF_INET, "1.2.3.4"); in TEST_F()
4965 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
4992 addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
5068 expectAnswersValid(fd, AF_INET, kHelloExampleComAddrV4); in TEST_F()
5123 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
5172 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
5492 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in VerifyQueryHelloExampleComV4()
5877 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
5940 expectAnswersValid(fd, AF_INET, kHelloExampleComAddrV4); in TEST_F()
5995 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
6492 expectAnswersValid(fd1, AF_INET, "192.0.2.0"); in TEST_F()
6493 expectAnswersValid(fd2, AF_INET, "192.0.2.1"); in TEST_F()
6502 expectAnswersValid(fd1, AF_INET, "192.0.2.0"); in TEST_F()
6503 expectAnswersValid(fd2, AF_INET, "192.0.2.1"); in TEST_F()