Home
last modified time | relevance | path

Searched refs:DhcpPacket (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Ddhcp_options_test.cpp60 struct DhcpPacket packet;
92 struct DhcpPacket packet;
121 struct DhcpPacket packet;
145 struct DhcpPacket packet;
177 struct DhcpPacket packet;
217 struct DhcpPacket packet;
250 struct DhcpPacket packet;
279 struct DhcpPacket packet;
305 struct DhcpPacket packet;
327 struct DhcpPacket packet;
[all …]
H A Ddhcp_client_state_machine_test.cpp386 DhcpPacket packet1;
390 DhcpPacket packet2;
394 DhcpPacket packet3;
406 DhcpPacket packet1;
421 DhcpPacket packet2;
425 DhcpPacket packet3;
441 DhcpPacket packet2;
445 DhcpPacket packet3;
461 DhcpPacket packet1;
612 DhcpPacket packet1;
[all …]
H A Dmock_custom_func.cpp64 int __real_GetDhcpRawPacket(struct DhcpPacket *getPacket, int rawFd);
65 int __wrap_GetDhcpRawPacket(struct DhcpPacket *getPacket, int rawFd) in __wrap_GetDhcpRawPacket()
99 int __real_GetDhcpKernelPacket(struct DhcpPacket *getPacket, int sockFd);
100 int __wrap_GetDhcpKernelPacket(struct DhcpPacket *getPacket, int sockFd) in __wrap_GetDhcpKernelPacket()
H A Dmock_custom_func.h27 MOCK_METHOD2(GetDhcpRawPacket, int(struct DhcpPacket *getPacket, int rawFd));
28 MOCK_METHOD2(GetDhcpKernelPacket, int(struct DhcpPacket *getPacket, int sockFd));
H A Ddhcp_socket_test.cpp117 struct DhcpPacket packet;
118 ASSERT_TRUE(memset_s(&packet, sizeof(struct DhcpPacket), 0, sizeof(struct DhcpPacket)) == EOK);
151 struct DhcpPacket packet;
244 struct DhcpPacket packet;
258 struct DhcpPacket packet;
/ohos5.0/foundation/communication/dhcp/services/dhcp_client/include/
H A Ddhcp_client_state_machine.h43 int GetPacketHeaderInfo(struct DhcpPacket *packet, uint8_t type);
44 int GetPacketCommonInfo(struct DhcpPacket *packet);
45 int AddClientIdToOpts(struct DhcpPacket *packet);
46 int AddHostNameToOpts(struct DhcpPacket *packet);
47 int AddStrToOpts(struct DhcpPacket *packet, int option, std::string &value);
60 void AddParamaterRequestList(struct DhcpPacket *packet);
63 void ParseDhcpAckPacket(const struct DhcpPacket *packet, time_t timestamp);
64 void ParseDhcpNakPacket(const struct DhcpPacket *packet, time_t timestamp);
69 void ParseNetworkInfo(const struct DhcpPacket *packet, struct DhcpIpResult *result);
80 void AddParamaterRebootList(struct DhcpPacket *packet);
[all …]
H A Ddhcp_options.h29 const uint8_t *GetDhcpOption(const struct DhcpPacket *packet, int code, size_t *length);
30 bool GetDhcpOptionUint8(const struct DhcpPacket *packet, int code, uint8_t *data);
31 bool GetDhcpOptionUint32(const struct DhcpPacket *packet, int code, uint32_t *data);
32 bool GetDhcpOptionUint32n(const struct DhcpPacket *packet, int code, uint32_t *data1, uint32_t *dat…
33 char *GetDhcpOptionString(const struct DhcpPacket *packet, int code);
H A Ddhcp_socket.h29 …const struct DhcpPacket *sendPacket, uint32_t srcIp, uint32_t destIp, int destIndex, const uint8_t…
30 int SendDhcpPacket(struct DhcpPacket *sendPacket, uint32_t srcIp, uint32_t destIp);
35 int GetDhcpRawPacket(struct DhcpPacket *getPacket, int rawFd);
36 int GetDhcpKernelPacket(struct DhcpPacket *getPacket, int sockFd);
H A Ddhcp_client_def.h338 struct DhcpPacket { struct
360 struct DhcpPacket data; argument
/ohos5.0/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_client_state_machine.cpp603 struct DhcpPacket packet; in DhcpReboot()
604 if (memset_s(&packet, sizeof(struct DhcpPacket), 0, sizeof(struct DhcpPacket)) != EOK) { in DhcpReboot()
1320 struct DhcpPacket packet; in DhcpResponseHandle()
1546 struct DhcpPacket packet; in DhcpDiscover()
1547 if (memset_s(&packet, sizeof(struct DhcpPacket), 0, sizeof(struct DhcpPacket)) != EOK) { in DhcpDiscover()
1580 struct DhcpPacket packet; in DhcpRequest()
1581 if (memset_s(&packet, sizeof(struct DhcpPacket), 0, sizeof(struct DhcpPacket)) != EOK) { in DhcpRequest()
1615 struct DhcpPacket packet; in DhcpRenew()
1616 if (memset_s(&packet, sizeof(struct DhcpPacket), 0, sizeof(struct DhcpPacket)) != EOK) { in DhcpRenew()
1652 struct DhcpPacket packet; in DhcpRelease()
[all …]
H A Ddhcp_socket.cpp216 …const struct DhcpPacket *sendPacket, uint32_t srcIp, uint32_t destIp, int destIndex, const uint8_t… in SendToDhcpPacket()
252 int dhcpPackLen = sizeof(struct DhcpPacket) - sizeof(udpPackets.data.options) + optionLen; in SendToDhcpPacket()
260 …if (memcpy_s(&(udpPackets.data), sizeof(struct DhcpPacket), sendPacket, sizeof(struct DhcpPacket))… in SendToDhcpPacket()
286 int SendDhcpPacket(struct DhcpPacket *sendPacket, uint32_t srcIp, uint32_t destIp) in SendDhcpPacket()
310 ssize_t nBytes = write(nFd, sendPacket, sizeof(struct DhcpPacket)); in SendDhcpPacket()
435 int GetDhcpRawPacket(struct DhcpPacket *getPacket, int rawFd) in GetDhcpRawPacket()
464 if (memcpy_s(getPacket, sizeof(struct DhcpPacket), &(udpPackets.data), nDhcpPacket) != EOK) { in GetDhcpRawPacket()
475 int GetDhcpKernelPacket(struct DhcpPacket *getPacket, int sockFd) in GetDhcpKernelPacket()
482 if ((nBytes = read(sockFd, getPacket, sizeof(struct DhcpPacket))) == -1) { in GetDhcpKernelPacket()
H A Ddhcp_options.cpp27 static bool CheckOptSoverloaded(const struct DhcpPacket *packet, int code, int maxLen, int *over, i… in CheckOptSoverloaded()
46 static int CheckOptionsData(const struct DhcpPacket *packet, int code, int index, int maxLen) in CheckOptionsData()
153 const uint8_t *GetDhcpOption(const struct DhcpPacket *packet, int code, size_t *length) in GetDhcpOption()
206 bool GetDhcpOptionUint8(const struct DhcpPacket *packet, int code, uint8_t *data) in GetDhcpOptionUint8()
226 bool GetDhcpOptionUint32(const struct DhcpPacket *packet, int code, uint32_t *data) in GetDhcpOptionUint32()
250 bool GetDhcpOptionUint32n(const struct DhcpPacket *packet, int code, uint32_t *data1, uint32_t *dat… in GetDhcpOptionUint32n()
284 char *GetDhcpOptionString(const struct DhcpPacket *packet, int code) in GetDhcpOptionString()
/ohos5.0/foundation/communication/dhcp/test/fuzztest/dhcpclientfun_fuzzer/
H A Ddhcpclientfun_fuzzer.cpp589 struct DhcpPacket packet; in DhcpOfferPacketHandleFuzzerTest()
599 struct DhcpPacket packet; in ParseNetworkServerIdInfoFuzzerTest()
608 struct DhcpPacket packet; in ParseNetworkDnsInfoFuzzerTest()
627 struct DhcpPacket packet; in ParseNetworkInfoFuzzerTest()
666 struct DhcpPacket packet; in GetDHCPServerHostNameFuzzerTest()
675 struct DhcpPacket packet; in ParseNetworkVendorInfoFuzzerTest()
683 struct DhcpPacket packet; in DhcpAckOrNakPacketHandleFuzzerTest()
693 struct DhcpPacket packet; in ParseDhcpAckPacketFuzzerTest()
702 struct DhcpPacket packet; in ParseDhcpNakPacketFuzzerTest()
711 struct DhcpPacket packet; in GetDhcpOfferFuzzerTest()
[all …]