Home
last modified time | relevance | path

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

/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Ddhcp_message_sim.cpp36 constexpr uint8_t OPT_HEADER_LENGTH = 2; variable
194 olen = OPT_HEADER_LENGTH + 1; in ParseDhcpOptions()
196 olen = OPT_HEADER_LENGTH + pNode->option.length; in ParseDhcpOptions()
H A Dsystem_func_mock.cpp33 #define OPT_HEADER_LENGTH 2 macro
/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_s_server.cpp49 #define OPT_HEADER_LENGTH 2 macro
1706 uint8_t *maxPos = (((uint8_t *)current) + (DHCP_OPTION_SIZE - MAGIC_COOKIE_LENGTH - OPT_HEADER_LENGTH -1)); in ParseMessageOptions()
1709 if (((uint8_t *)end) - ((uint8_t *)current) < OPT_HEADER_LENGTH) { in ParseMessageOptions()
1713 pos += (OPT_HEADER_LENGTH + current->length); in ParseMessageOptions()
1721 current = (DhcpOption *)(((uint8_t *)current) + OPT_HEADER_LENGTH + current->length); in ParseMessageOptions()
1792 olen = OPT_HEADER_LENGTH + 1; in ParseReplyOptions()
1794 olen = OPT_HEADER_LENGTH + pNode->option.length; in ParseReplyOptions()

Completed in 6 milliseconds