Lines Matching defs:data
65 DHCP_LOGW("CheckOptionsData failed, options data too long, code:%{public}d,index:%{public}d!", code, index);
72 /* Obtains the data type based on the code. */
117 /* Obtains the data length based on the code. */
152 /* Obtains the data pointer and length from the packet based on the code. */
205 /* Obtains the uint8 data from the packet based on the code. */
206 bool GetDhcpOptionUint8(const struct DhcpPacket *packet, int code, uint8_t *data)
215 DHCP_LOGE("GetDhcpOptionUint8 failed, len:%{public}zu less data:%{public}zu, code:%{public}d!",
219 if (memcpy_s(data, sizeof(uint8_t), p, sizeof(uint8_t)) != EOK) {
225 /* Obtains the uint32 data from the packet based on the code. */
226 bool GetDhcpOptionUint32(const struct DhcpPacket *packet, int code, uint32_t *data)
244 *data = ntohl(uData);
249 /* Obtains the uint32n data from the packet based on the code. */
283 /* Obtains the string data from the packet based on the code. */
293 DHCP_LOGE("GetDhcpOptionString failed, len:%{public}zu less data:%{public}zu, code:%{public}d!",