Home
last modified time | relevance | path

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

/foundation/communication/dhcp/test/services/dhcp_server/unittest/
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()
Dsystem_func_mock.cpp30 #define MAGIC_COOKIE_LENGTH 4 macro
/foundation/communication/dhcp/services/dhcp_server/src/
Ddhcp_server.c53 #define MAGIC_COOKIE_LENGTH 4 macro
67 const uint8_t MAGIC_COOKIE_DATA[MAGIC_COOKIE_LENGTH] = {0x63, 0x82, 0x53, 0x63}; // Vendor Informa…
1458 if (msg->length < (DHCP_MSG_HEADER_SIZE + MAGIC_COOKIE_LENGTH)) { in ParseMessageOptions()
1470 current = (DhcpOption *)(((uint8_t *)current) + MAGIC_COOKIE_LENGTH); in ParseMessageOptions()
1471 uint8_t *pos = (((uint8_t *)current) + MAGIC_COOKIE_LENGTH); in ParseMessageOptions()
1472 …uint8_t *maxPos = (((uint8_t *)current) + (DHCP_OPTION_SIZE - MAGIC_COOKIE_LENGTH - OPT_HEADER_LEN… in ParseMessageOptions()
1545 uint8_t *current = reply->packet.options, olen = MAGIC_COOKIE_LENGTH; in ParseReplyOptions()