Home
last modified time | relevance | path

Searched refs:NTP_PACKAGE_SIZE (Results 1 - 3 of 3) sorted by relevance

/base/time/time_service/test/fuzztest/timeservice_fuzzer/timesntp_fuzzer/
H A Dtimesntp_fuzzer.cpp30 constexpr size_t NTP_PACKAGE_SIZE = 48; member
34 size_t copySize = (size < NTP_PACKAGE_SIZE) ? size : NTP_PACKAGE_SIZE; in Convert()
39 for (size_t i = copySize; i < NTP_PACKAGE_SIZE; ++i) { in Convert()
46 char sendBuf[NTP_PACKAGE_SIZE] = { 0 }; in FuzzTimeCreateMessage()
57 char sendBuf[NTP_PACKAGE_SIZE] = { 0 }; in FuzzTimeReceivedMessage()
/base/time/time_service/test/fuzztest/timeservice_fuzzer/timereceivedmessage_fuzzer/
H A Dtimereceivedmessage_fuzzer.cpp37 constexpr int32_t NTP_PACKAGE_SIZE = 48; member
52 char buffer[NTP_PACKAGE_SIZE] = { 0 }; in FuzzTimeReceivedMessage()
53 if (memcpy_s(buffer, NTP_PACKAGE_SIZE, data, size) != EOK) { in FuzzTimeReceivedMessage()
/base/time/time_service/services/time/src/
H A Dsntp_client.cpp61 constexpr int32_t NTP_PACKAGE_SIZE = 48; member
68 int bufLen = NTP_PACKAGE_SIZE; in RequestTime()
99 char sendBuf[NTP_PACKAGE_SIZE] = { 0 }; in RequestTime()
108 char bufferRx[NTP_PACKAGE_SIZE] = { 0 }; in RequestTime()
110 if (recv(sendSocket, bufferRx, NTP_PACKAGE_SIZE, 0) < 0) { in RequestTime()

Completed in 2 milliseconds