Home
last modified time | relevance | path

Searched refs:buf2 (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Connectivity/tests/cts/net/native/dns/
DNativeDnsAsyncTest.cpp133 uint8_t buf2[MAXPACKET] = {}; in TEST() local
135 ns_c_in, ns_t_a, nullptr, 0, nullptr, buf2, sizeof(buf2)); in TEST()
140 int fd2 = android_res_nsend(NETWORK_UNSPECIFIED, buf2, len2, 0); in TEST()
148 memset(buf2, 0, sizeof(buf2)); in TEST()
153 ns_c_in, ns_t_aaaa, nullptr, 0, nullptr, buf2, sizeof(buf2)); in TEST()
158 fd2 = android_res_nsend(NETWORK_UNSPECIFIED, buf2, len2, 0); in TEST()
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeMultinetworkJni.cpp178 uint8_t buf2[MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() local
179 int len2 = makeQuery(kHostname, ns_t_a, buf2, sizeof(buf2)); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
184 int fd2 = android_res_nsend(handle, buf2, len2, 0); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
194 memset(buf2, 0, sizeof(buf2)); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
197 len2 = makeQuery(kHostname, ns_t_aaaa, buf2, sizeof(buf2)); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
202 fd2 = android_res_nsend(handle, buf2, len2, 0); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
/packages/modules/DnsResolver/
Dres_send.cpp376 int res_queriesmatch(const uint8_t* buf1, const uint8_t* eom1, const uint8_t* buf2, in res_queriesmatch() argument
381 if (buf1 + HFIXEDSZ > eom1 || buf2 + HFIXEDSZ > eom2) return (-1); in res_queriesmatch()
388 (((const HEADER*) (const void*) buf2)->opcode == ns_o_update)) in res_queriesmatch()
391 if (qdcount != ntohs(((const HEADER*) (const void*) buf2)->qdcount)) return (0); in res_queriesmatch()
402 if (!res_nameinquery(tname, ttype, tclass, buf2, eom2)) return (0); in res_queriesmatch()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp4295 uint8_t buf2[MAXPACKET] = {}; in TEST_F() local
4297 int res2 = getAsyncResponse(fd2, &rcode, buf2, MAXPACKET); in TEST_F()
4307 EXPECT_EQ("::1.2.3.4", toString(buf2, res2, AF_INET6)); in TEST_F()
4386 uint8_t buf2[MAXPACKET] = {}; in TEST_F() local
4396 const int res2 = getAsyncResponse(fd2, &rcode, buf2, MAXPACKET); in TEST_F()
4404 EXPECT_EQ("::1.2.3.4", toString(buf2, res2, AF_INET6)); in TEST_F()