Home
last modified time | relevance | path

Searched refs:MAXPACKET (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Connectivity/tests/cts/net/native/dns/
DNativeDnsAsyncTest.cpp33 constexpr int MAXPACKET = 8 * 1024; variable
80 uint8_t buf[MAXPACKET] = {}; in expectAnswersValid()
81 int res = getAsyncResponse(fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersValid()
97 uint8_t buf[MAXPACKET] = {}; in expectAnswersNotValid()
98 int res = getAsyncResponse(fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersNotValid()
128 uint8_t buf1[MAXPACKET] = {}; in TEST()
133 uint8_t buf2[MAXPACKET] = {}; in TEST()
166 uint8_t buf[MAXPACKET] = {}; in TEST()
231 std::vector<uint8_t> largeBuf(2 * MAXPACKET, 0); in TEST()
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeMultinetworkJni.cpp70 static const int MAXPACKET = 8 * 1024; variable
125 uint8_t buf[MAXPACKET] = {}; in expectAnswersValid()
126 int res = getAsyncResponse(env, fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersValid()
141 uint8_t buf[MAXPACKET] = {}; in expectAnswersNotValid()
142 int res = getAsyncResponse(env, fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersNotValid()
173 uint8_t buf1[MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
178 uint8_t buf2[MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
228 uint8_t buf[MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNnxDomainCheck()
290 uint8_t largeBuf[2 * MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNapiMalformedCheck()
/packages/modules/DnsResolver/tests/
Dresolv_unit_test.cpp46 constexpr unsigned int MAXPACKET = 8 * 1024; variable
1251 char tmpbuf[MAXPACKET]; in TEST_F()
1295 char tmpbuf[MAXPACKET]; in TEST_F()
1317 char tmpbuf[MAXPACKET]; in TEST_F()
1358 char tmpbuf[MAXPACKET]; in TEST_F()
1378 char tmpbuf[MAXPACKET]; in TEST_F()
1411 char tmpbuf[MAXPACKET]; in TEST_F()
1463 char tmpbuf[MAXPACKET]; in TEST_F()
1485 char tmpbuf[MAXPACKET]; in TEST_F()
Dresolv_integration_test.cpp79 constexpr int MAXPACKET = (8 * 1024); variable
2265 uint8_t buf[MAXPACKET] = {}; in expectAnswersValid()
2267 int res = getAsyncResponse(fd, &rcode, buf, MAXPACKET); in expectAnswersValid()
2274 uint8_t buf[MAXPACKET] = {}; in expectAnswersNotValid()
2276 int res = getAsyncResponse(fd, &rcode, buf, MAXPACKET); in expectAnswersNotValid()
2300 uint8_t buf[MAXPACKET] = {}; in TEST_F()
2302 int res = getAsyncResponse(fd2, &rcode, buf, MAXPACKET); in TEST_F()
2306 res = getAsyncResponse(fd1, &rcode, buf, MAXPACKET); in TEST_F()
2319 res = getAsyncResponse(fd2, &rcode, buf, MAXPACKET); in TEST_F()
2323 res = getAsyncResponse(fd1, &rcode, buf, MAXPACKET); in TEST_F()
[all …]
Dresolv_cache_unit_test.cpp72 uint8_t buf[MAXPACKET] = {}; in makeQuery()
96 char answer[MAXPACKET] = {}; in makeAnswer()
159 std::vector<char> answer(MAXPACKET); in cacheLookup()
288 const std::vector<char> queryEmpty(MAXPACKET, 0); in TEST_F()
399 const std::vector<char> queryEmpty(MAXPACKET, 0); in TEST_F()
Dresolv_gold_test.cpp51 constexpr unsigned int MAXPACKET = 8 * 1024; variable
213 char tmpbuf[MAXPACKET]; in VerifyGetHostByName()
/packages/modules/DnsResolver/
DDnsProxyListener.cpp909 std::vector<uint8_t> msg(MAXPACKET, 0); in run()
912 int msgLen = b64_pton(mMsg.c_str(), msg.data(), MAXPACKET); in run()
934 std::vector<uint8_t> ansBuf(MAXPACKET, 0); in run()
941 nsendAns = resolv_res_nsend(&mNetContext, msg.data(), msgLen, ansBuf.data(), MAXPACKET, in run()
1134 char tmpbuf[MAXPACKET]; in run()
1294 char tmpbuf[MAXPACKET]; in run()
Dresolv_private.h88 constexpr int MAXPACKET = 8 * 1024; variable
Dres_query.cpp109 uint8_t buf[MAXPACKET]; in res_nquery()
Dgethnamaddr.cpp99 uint8_t buf[MAXPACKET];
547 const size_t line_buf_size = MAXPACKET; in netbsd_gethostent_r()
DDnsTlsTransport.cpp134 std::vector<uint8_t> buf(MAXPACKET); in sendUdpQuery()
Dgetaddrinfo.cpp122 std::vector<uint8_t> answer = std::vector<uint8_t>(MAXPACKET, 0); // buffer to put answer
1622 uint8_t buf[MAXPACKET]; in doQuery()
1733 uint8_t buf[MAXPACKET]; in res_queryN()
/packages/modules/Connectivity/framework/src/android/net/
DDnsResolver.java62 private static final int MAXPACKET = 8 * 1024; field in DnsResolver