Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/cts/net/native/dns/
DNativeDnsAsyncTest.cpp34 constexpr int MAXPACKET = 8 * 1024; variable
81 uint8_t buf[MAXPACKET] = {}; in expectAnswersValid()
82 int res = getAsyncResponse(fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersValid()
98 uint8_t buf[MAXPACKET] = {}; in expectAnswersNotValid()
99 int res = getAsyncResponse(fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersNotValid()
131 uint8_t buf1[MAXPACKET] = {}; in TEST_F()
136 uint8_t buf2[MAXPACKET] = {}; in TEST_F()
169 uint8_t buf[MAXPACKET] = {}; in TEST_F()
234 std::vector<uint8_t> largeBuf(2 * MAXPACKET, 0); in TEST_F()
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeMultinetworkJni.cpp81 static const int MAXPACKET = 8 * 1024; variable
148 uint8_t buf[MAXPACKET] = {}; in expectAnswersValid()
149 int res = getAsyncResponse(env, fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersValid()
164 uint8_t buf[MAXPACKET] = {}; in expectAnswersNotValid()
165 int res = getAsyncResponse(env, fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersNotValid()
196 uint8_t buf1[MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
201 uint8_t buf2[MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
251 uint8_t buf[MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNnxDomainCheck()
313 uint8_t largeBuf[2 * MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNapiMalformedCheck()
/packages/modules/DnsResolver/tests/
Ddoh_ffi_test.cpp34 constexpr int MAXPACKET = (8 * 1024); variable
122 std::vector<uint8_t> buf(MAXPACKET, 0); in TEST_F()
124 nullptr, buf.data(), MAXPACKET); in TEST_F()
Dresolv_unit_test.cpp47 constexpr unsigned int MAXPACKET = 8 * 1024; variable
1444 char tmpbuf[MAXPACKET]; in TEST_F()
1488 char tmpbuf[MAXPACKET]; in TEST_F()
1510 char tmpbuf[MAXPACKET]; in TEST_F()
1551 char tmpbuf[MAXPACKET]; in TEST_F()
1571 char tmpbuf[MAXPACKET]; in TEST_F()
1603 char tmpbuf[MAXPACKET]; in TEST_F()
1654 char tmpbuf[MAXPACKET]; in TEST_F()
1676 char tmpbuf[MAXPACKET]; in TEST_F()
1758 char tmpbuf[MAXPACKET]; in TEST_F()
[all …]
Dresolv_integration_test.cpp89 constexpr int MAXPACKET = (8 * 1024); variable
2477 uint8_t buf[MAXPACKET] = {}; in expectAnswersValid()
2479 int res = getAsyncResponse(fd, &rcode, buf, MAXPACKET); in expectAnswersValid()
2486 uint8_t buf[MAXPACKET] = {}; in expectAnswersNotValid()
2488 int res = getAsyncResponse(fd, &rcode, buf, MAXPACKET); in expectAnswersNotValid()
2512 uint8_t buf[MAXPACKET] = {}; in TEST_F()
2514 int res = getAsyncResponse(fd2, &rcode, buf, MAXPACKET); in TEST_F()
2518 res = getAsyncResponse(fd1, &rcode, buf, MAXPACKET); in TEST_F()
2531 res = getAsyncResponse(fd2, &rcode, buf, MAXPACKET); in TEST_F()
2535 res = getAsyncResponse(fd1, &rcode, buf, MAXPACKET); in TEST_F()
[all …]
Dresolv_cache_unit_test.cpp79 uint8_t buf[MAXPACKET] = {}; in makeQuery()
102 char answer[MAXPACKET] = {}; in makeAnswer()
165 std::vector<uint8_t> answer(MAXPACKET); in cacheLookup()
293 const std::vector<uint8_t> queryEmpty(MAXPACKET, 0); in TEST_F()
404 const std::vector<uint8_t> queryEmpty(MAXPACKET, 0); in TEST_F()
Dresolv_private_dns_test.cpp58 constexpr int MAXPACKET = (8 * 1024); variable
100 uint8_t buf[MAXPACKET] = {}; in expectAnswersValid()
102 int res = getAsyncResponse(fd, &rcode, buf, MAXPACKET); in expectAnswersValid()
343 uint8_t buf[MAXPACKET] = {}; in expectQueriesAreBlocked()
345 EXPECT_EQ(-ECONNREFUSED, getAsyncResponse(fd, &rcode, buf, MAXPACKET)); in expectQueriesAreBlocked()
Dresolv_gold_test.cpp50 constexpr unsigned int MAXPACKET = 8 * 1024; variable
213 char tmpbuf[MAXPACKET]; in VerifyGetHostByName()
/packages/modules/DnsResolver/tests/fuzzer/
Dresolv_gethostbyname_fuzzer.cpp17 char tmpbuf[MAXPACKET]; in TestResolvGethostbyname()
Dresolv_fuzzer_utils.h23 constexpr int MAXPACKET = 8 * 1024; variable
Dresolv_gethostbyaddr_fuzzer.cpp16 char tmpbuf[MAXPACKET]; in TestResolvGethostbyaddr()
/packages/modules/DnsResolver/
Dres_query.cpp108 uint8_t buf[MAXPACKET]; in res_nquery()
DDnsProxyListener.cpp1102 std::vector<uint8_t> msg(MAXPACKET, 0); in run()
1105 int msgLen = b64_pton(mMsg.c_str(), msg.data(), MAXPACKET); in run()
1127 std::vector<uint8_t> ansBuf(MAXPACKET, 0); in run()
1333 char tmpbuf[MAXPACKET]; in run()
1496 char tmpbuf[MAXPACKET]; in run()
Dresolv_private.h90 constexpr int MAXPACKET = 8 * 1024; variable
Dgethnamaddr.cpp92 uint8_t buf[MAXPACKET];
532 const size_t line_buf_size = MAXPACKET; in netbsd_gethostent_r()
DDnsTlsTransport.cpp132 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
1616 uint8_t buf[MAXPACKET]; in doQuery()
/packages/modules/Connectivity/framework/src/android/net/
DDnsResolver.java62 private static final int MAXPACKET = 8 * 1024; field in DnsResolver