Home
last modified time | relevance | path

Searched refs:srcIp (Results 1 - 15 of 15) sorted by relevance

/foundation/communication/dhcp/services/dhcp_client/include/
H A Ddhcp_socket.h29 const struct DhcpPacket *sendPacket, uint32_t srcIp, uint32_t destIp, int destIndex, const uint8_t *destHwaddr);
30 int SendDhcpPacket(struct DhcpPacket *sendPacket, uint32_t srcIp, uint32_t destIp);
/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_s_server.cpp236 uint32_t srcIp = SourceAddrIn()->sin_addr.s_addr; in SourceIpAddress() local
237 return srcIp; in SourceIpAddress()
816 uint32_t srcIp = SourceIpAddress(); in Repending() local
817 if (srcIp && srcIp != INADDR_BROADCAST && bindingIp != INADDR_BROADCAST && srcIp != bindingIp) { in Repending()
821 if (srcIp && srcIp == bindingIp) { in Repending()
822 if (pool->leaseTable.count(srcIp) == 0) { in Repending()
824 pool->leaseTable[srcIp] in Repending()
1003 uint32_t srcIp = SourceIpAddress(); OnReceivedDiscover() local
1046 uint32_t srcIp = SourceIpAddress(); GetYourIpAddress() local
1198 uint32_t srcIp = SourceIpAddress(); HasNobindgRequest() local
1467 uint32_t srcIp = SourceIpAddress(); OnReceivedRelease() local
[all...]
H A Ddhcp_function.cpp302 bool DhcpFunction::CheckSameNetwork(const uint32_t srcIp, const uint32_t dstIp, const uint32_t maskIp) in CheckSameNetwork() argument
304 uint32_t srcNet = srcIp & maskIp; in CheckSameNetwork()
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_netfirewall_test/
H A Dnetsys_netfirewall_test.cpp132 Ip4Key srcIp = 0; in HWTEST_F() local
134 inet_pton(AF_INET, src.c_str(), &srcIp); in HWTEST_F()
147 interceptEv.ipv4.saddr = srcIp; in HWTEST_F()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/
H A Dnstackx_common.h49 uint32_t len, const char *srcIp);
/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Dsystem_func_mock.cpp274 uint32_t srcIp = DhcpMsgManager::GetInstance().GetClientIp(); in recvfrom() local
275 if (__addr != nullptr && srcIp != 0) { in recvfrom()
277 sAddr->sin_addr.s_addr = HostToNetwork(srcIp); in recvfrom()
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_socket.cpp177 const struct DhcpPacket *sendPacket, uint32_t srcIp, uint32_t destIp, int destIndex, const uint8_t *destHwaddr) in SendToDhcpPacket()
219 udpPackets.ip.saddr = srcIp; in SendToDhcpPacket()
247 int SendDhcpPacket(struct DhcpPacket *sendPacket, uint32_t srcIp, uint32_t destIp) in SendDhcpPacket() argument
251 (BindKernelSocket(nFd, NULL, srcIp, BOOTP_CLIENT, false) != SOCKET_OPT_SUCCESS)) { in SendDhcpPacket()
176 SendToDhcpPacket( const struct DhcpPacket *sendPacket, uint32_t srcIp, uint32_t destIp, int destIndex, const uint8_t *destHwaddr) SendToDhcpPacket() argument
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbpf_netfirewall.cpp579 std::string srcIp; in NotifyInterceptEvent() local
584 srcIp = ip4; in NotifyInterceptEvent()
591 srcIp = ip6; in NotifyInterceptEvent()
597 record->localIp = srcIp; in NotifyInterceptEvent()
601 record->remoteIp = srcIp; in NotifyInterceptEvent()
/foundation/communication/dhcp/services/dhcp_server/include/
H A Ddhcp_function.h44 static bool CheckSameNetwork(const uint32_t srcIp, const uint32_t dstIp, const uint32_t maskIp);
/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Ddhcp_socket_test.cpp112 uint32_t srcIp = 3226272232; in HWTEST_F() local
134 int result = SendToDhcpPacket(&packet, srcIp, destIp, destIndex, destHwaddr); in HWTEST_F()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/
H A Dnstackx_dfinder_mgt_msg_log.c101 static int32_t GetAnonymizedIp(char *dstIp, size_t dstLen, char *srcIp) in GetAnonymizedIp() argument
106 addr.sin_addr.s_addr = inet_addr(srcIp); in GetAnonymizedIp()
H A Dnstackx_common.c1708 uint32_t len, const char *srcIp) in NotifyMsgReceived()
1712 g_parameter.onMsgReceived(moduleName, deviceId, data, len, srcIp); in NotifyMsgReceived()
1707 NotifyMsgReceived(const char *moduleName, const char *deviceId, const uint8_t *data, uint32_t len, const char *srcIp) NotifyMsgReceived() argument
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/
H A Dcoap_discover.c582 char srcIp[NSTACKX_MAX_IP_STRING_LEN] = {0}; local
583 if (inet_ntop(AF_INET, &((addPtr->addr).sin.sin_addr), srcIp, sizeof(srcIp)) == NULL) {
587 NotifyMsgReceived(moduleName, deviceId, msg, msgLen, srcIp);
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/interface/
H A Dnstackx.h193 const uint8_t *data, uint32_t len, const char *srcIp); /* Data receive callback type */
/foundation/communication/dhcp/test/fuzztest/dhcpclientfun_fuzzer/
H A Ddhcpclientfun_fuzzer.cpp294 uint32_t srcIp = static_cast<uint32_t>(data[0]); in SendDhcpPacketFuzzerTest() local
296 SendDhcpPacket(sendPacket, srcIp, destIp); in SendDhcpPacketFuzzerTest()

Completed in 18 milliseconds