Home
last modified time | relevance | path

Searched refs:GetDhcpOptionUint32 (Results 1 - 4 of 4) sorted by relevance

/foundation/communication/dhcp/services/dhcp_client/include/
H A Ddhcp_options.h31 bool GetDhcpOptionUint32(const struct DhcpPacket *packet, int code, uint32_t *data);
/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Ddhcp_options_test.cpp169 EXPECT_EQ(true, GetDhcpOptionUint32(&packet, IP_ADDRESS_LEASE_TIME_OPTION, &u32Data)); in HWTEST_F()
175 EXPECT_EQ(false, GetDhcpOptionUint32(nullptr, IP_ADDRESS_LEASE_TIME_OPTION, &u32Data)); in HWTEST_F()
194 EXPECT_EQ(false, GetDhcpOptionUint32(&packet, DHCP_MESSAGE_TYPE_OPTION, &u32Data)); in HWTEST_F()
212 EXPECT_EQ(false, GetDhcpOptionUint32(&packet, IP_ADDRESS_LEASE_TIME_OPTION, &u32Data)); in HWTEST_F()
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_options.cpp226 bool GetDhcpOptionUint32(const struct DhcpPacket *packet, int code, uint32_t *data) in GetDhcpOptionUint32() function
231 DHCP_LOGW("GetDhcpOptionUint32 GetDhcpOption nullptr, code:%{public}d!", code); in GetDhcpOptionUint32()
236 DHCP_LOGE("GetDhcpOptionUint32 failed, len:%{public}zu less uData:%{public}zu, code:%{public}d!", in GetDhcpOptionUint32()
H A Ddhcp_client_state_machine.cpp886 if (!GetDhcpOptionUint32(packet, SERVER_IDENTIFIER_OPTION, &u32Data)) { in DhcpOfferPacketHandle()
887 DHCP_LOGE("DhcpOfferPacketHandle() type:%{public}d GetDhcpOptionUint32 SERVER_IDENTIFIER_OPTION failed!", in DhcpOfferPacketHandle()
924 if (!GetDhcpOptionUint32(packet, SERVER_IDENTIFIER_OPTION, &u32Data)) { in ParseNetworkServerIdInfo()
1079 if (GetDhcpOptionUint32(packet, SUBNET_MASK_OPTION, &u32Data)) { in ParseNetworkInfo()
1094 DHCP_LOGE("GetDhcpOptionUint32() failed!"); in ParseNetworkInfo()
1300 if (GetDhcpOptionUint32(packet, IP_ADDRESS_LEASE_TIME_OPTION, &u32Data)) { in ParseDhcpAckPacket()
1363 if (GetDhcpOptionUint32(packet, IP_ADDRESS_LEASE_TIME_OPTION, &u32Data)) { in GetDhcpOffer()

Completed in 4 milliseconds