Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/cts/net/native/dns/
DNativeDnsAsyncTest.cpp128 uint8_t buf1[MAXPACKET] = {}; in TEST() local
130 ns_c_in, ns_t_a, nullptr, 0, nullptr, buf1, sizeof(buf1)); in TEST()
138 int fd1 = android_res_nsend(NETWORK_UNSPECIFIED, buf1, len1, 0); in TEST()
147 memset(buf1, 0, sizeof(buf1)); in TEST()
150 ns_c_in, ns_t_aaaa, nullptr, 0, nullptr, buf1, sizeof(buf1)); in TEST()
156 fd1 = android_res_nsend(NETWORK_UNSPECIFIED, buf1, len1, 0); in TEST()
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeMultinetworkJni.cpp173 uint8_t buf1[MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() local
175 int len1 = makeQuery(kGoogleName, ns_t_a, buf1, sizeof(buf1)); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
182 int fd1 = android_res_nsend(handle, buf1, len1, 0); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
193 memset(buf1, 0, sizeof(buf1)); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
195 len1 = makeQuery(kGoogleName, ns_t_aaaa, buf1, sizeof(buf1)); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
200 fd1 = android_res_nsend(handle, buf1, len1, 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
378 const uint8_t* cp = buf1 + HFIXEDSZ; in res_queriesmatch()
379 int qdcount = ntohs(((const HEADER*) (const void*) buf1)->qdcount); in res_queriesmatch()
381 if (buf1 + HFIXEDSZ > eom1 || buf2 + HFIXEDSZ > eom2) return (-1); in res_queriesmatch()
387 if ((((const HEADER*) (const void*) buf1)->opcode == ns_o_update) && in res_queriesmatch()
394 int n = dn_expand(buf1, eom1, cp, tname, sizeof tname); in res_queriesmatch()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp4294 uint8_t buf1[MAXPACKET] = {}; in TEST_F() local
4298 int res1 = getAsyncResponse(fd1, &rcode, buf1, MAXPACKET); in TEST_F()
4309 EXPECT_EQ("1.2.3.4", toString(buf1, res1, AF_INET)); in TEST_F()