Home
last modified time | relevance | path

Searched refs:nOptLen (Results 1 - 2 of 2) sorted by relevance

/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_options.cpp325 int AddOptStrToOpts(uint8_t *pOpts, uint8_t *pOpt, int nOptLen) in AddOptStrToOpts() argument
328 if (nOptLen != optStrLen) { in AddOptStrToOpts()
329 DHCP_LOGE("AddOptStrToOpts() code:%{public}u nOptLen:%{public}d no equal optStrLen:%{public}d!", in AddOptStrToOpts()
330 pOpt[DHCP_OPT_CODE_INDEX], nOptLen, optStrLen); in AddOptStrToOpts()
335 if ((nEndIndex + nOptLen + 1) >= DHCP_OPT_SIZE) { in AddOptStrToOpts()
341 if (memcpy_s(pOpts + nEndIndex, nOptLen + 1, pOpt, nOptLen) != EOK) { in AddOptStrToOpts()
344 pOpts[nEndIndex + nOptLen] = END_OPTION; in AddOptStrToOpts()
345 return nOptLen; in AddOptStrToOpts()
/foundation/communication/dhcp/services/dhcp_client/include/
H A Ddhcp_options.h35 int AddOptStrToOpts(uint8_t *pOpts, uint8_t *pOpt, int nOptLen);

Completed in 1 milliseconds