Home
last modified time | relevance | path

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

/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Ddhcp_message_sim.cpp37 constexpr uint8_t MAGIC_COOKIE_LENGTH = 4; variable
183 uint8_t *current = msg->packet.options, olen = MAGIC_COOKIE_LENGTH; in ParseDhcpOptions()
H A Dsystem_func_mock.cpp32 #define MAGIC_COOKIE_LENGTH 4 macro
/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_s_server.cpp53 #define MAGIC_COOKIE_LENGTH 4 macro
69 const uint8_t MAGIC_COOKIE_DATA[MAGIC_COOKIE_LENGTH] = {0x63, 0x82, 0x53, 0x63}; // Vendor Information "Magic Cookie"
1692 if (msg->length < (DHCP_MSG_HEADER_SIZE + MAGIC_COOKIE_LENGTH)) { in ParseMessageOptions()
1704 current = (DhcpOption *)(((uint8_t *)current) + MAGIC_COOKIE_LENGTH); in ParseMessageOptions()
1705 uint8_t *pos = (((uint8_t *)current) + MAGIC_COOKIE_LENGTH); in ParseMessageOptions()
1706 uint8_t *maxPos = (((uint8_t *)current) + (DHCP_OPTION_SIZE - MAGIC_COOKIE_LENGTH - OPT_HEADER_LENGTH -1)); in ParseMessageOptions()
1779 uint8_t *current = reply->packet.options, olen = MAGIC_COOKIE_LENGTH; in ParseReplyOptions()

Completed in 8 milliseconds