Home
last modified time | relevance | path

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

/aosp12/packages/modules/Connectivity/tests/cts/net/native/dns/
H A 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()
/aosp12/packages/modules/Connectivity/tests/cts/net/jni/
H A 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()
/aosp12/bionic/libc/dns/resolv/
H A Dres_query.c112 #define MAXPACKET PACKETSZ macro
114 #define MAXPACKET 1024 macro
134 u_char buf[MAXPACKET]; in res_nquery()
/aosp12/packages/modules/DnsResolver/tests/
H A 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()
H A Dresolv_integration_test.cpp79 constexpr int MAXPACKET = (8 * 1024); variable
2265 uint8_t buf[MAXPACKET] = {}; in expectAnswersValid()
2274 uint8_t buf[MAXPACKET] = {}; in expectAnswersNotValid()
2300 uint8_t buf[MAXPACKET] = {}; in TEST_F()
2406 uint8_t buf[MAXPACKET] = {}; in TEST_F()
2414 memset(buf, 0, MAXPACKET); in TEST_F()
2423 memset(buf, 0, MAXPACKET); in TEST_F()
2428 memset(buf, 0, MAXPACKET); in TEST_F()
2497 uint8_t buf[MAXPACKET] = {}; in TEST_F()
2777 uint8_t buf[MAXPACKET] = {}; in TEST_F()
[all …]
H A 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()
H A Dresolv_gold_test.cpp51 constexpr unsigned int MAXPACKET = 8 * 1024; variable
213 char tmpbuf[MAXPACKET]; in VerifyGetHostByName()
/aosp12/packages/modules/DnsResolver/
H A 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()
H A Dresolv_private.h88 constexpr int MAXPACKET = 8 * 1024; variable
H A Dres_query.cpp109 uint8_t buf[MAXPACKET]; in res_nquery()
H A DDnsTlsTransport.cpp134 std::vector<uint8_t> buf(MAXPACKET); in sendUdpQuery()
H A Dgethnamaddr.cpp99 uint8_t buf[MAXPACKET];
547 const size_t line_buf_size = MAXPACKET; in netbsd_gethostent_r()
H A 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()
/aosp12/packages/modules/Connectivity/framework/src/android/net/
H A DDnsResolver.java62 private static final int MAXPACKET = 8 * 1024; field in DnsResolver
/aosp12/bionic/libc/dns/net/
H A Dgetaddrinfo.c202 #define MAXPACKET (8*1024) macro
206 u_char buf[MAXPACKET];
2162 u_char buf[MAXPACKET]; in res_queryN()
H A Dgethnamaddr.c129 #define MAXPACKET (8*1024) macro
133 u_char buf[MAXPACKET];