Searched refs:GetDhcpOption (Results 1 - 4 of 4) sorted by relevance
/foundation/communication/dhcp/services/dhcp_client/src/ |
H A D | dhcp_options.cpp | 153 const uint8_t *GetDhcpOption(const struct DhcpPacket *packet, int code, size_t *length) in GetDhcpOption() function 157 DHCP_LOGE("GetDhcpOption failed, packet == nullptr!"); in GetDhcpOption() 201 DHCP_LOGW("GetDhcpOption options no find code:%{public}d, nIndex:%{public}d!", code, nIndex); in GetDhcpOption() 209 const uint8_t *p = GetDhcpOption(packet, code, &len); in GetDhcpOptionUint8() 211 DHCP_LOGW("GetDhcpOptionUint8 GetDhcpOption nullptr, code:%{public}d!", code); in GetDhcpOptionUint8() 229 const uint8_t *p = GetDhcpOption(packet, code, &len); in GetDhcpOptionUint32() 231 DHCP_LOGW("GetDhcpOptionUint32 GetDhcpOption nullptr, code:%{public}d!", code); in GetDhcpOptionUint32() 253 const uint8_t *p = GetDhcpOption(packet, code, &len); in GetDhcpOptionUint32n() 255 DHCP_LOGW("GetDhcpOptionUint32n GetDhcpOption nullptr, code:%{public}d!", code); in GetDhcpOptionUint32n() 287 const uint8_t *p = GetDhcpOption(packe in GetDhcpOptionString() [all...] |
H A D | dhcp_client_state_machine.cpp | 966 const uint8_t *p = GetDhcpOption(packet, DOMAIN_NAME_SERVER_OPTION, &len); in ParseNetworkDnsInfo()
|
/foundation/communication/dhcp/services/dhcp_client/include/ |
H A D | dhcp_options.h | 29 const uint8_t *GetDhcpOption(const struct DhcpPacket *packet, int code, size_t *length);
|
/foundation/communication/dhcp/test/unittest/services/dhcp_client/ |
H A D | dhcp_options_test.cpp | 84 EXPECT_NE(GetDhcpOption(&packet, DHCP_MESSAGE_TYPE_OPTION, &len), nullptr); in HWTEST_F() 90 EXPECT_EQ(GetDhcpOption(nullptr, DHCP_MESSAGE_TYPE_OPTION, &len), nullptr); in HWTEST_F() 116 EXPECT_EQ(GetDhcpOption(&packet, DHCP_MESSAGE_TYPE_OPTION, &len), nullptr); in HWTEST_F()
|
Completed in 5 milliseconds