Home
last modified time | relevance | path

Searched refs:remoteIp (Results 1 – 25 of 49) sorted by relevance

12

/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/
H A Dwifi_direct_manager_test.cpp192 std::string remoteIp("172.30.1.2"); variable
201 ret = GetLocalIpByRemoteIpOnce(remoteIp.c_str(), localIp, sizeof(localIp));
207 link.SetRemoteIpv4(remoteIp); in __anond28ca6eb0702()
231 std::string remoteIp("172.30.1.2"); variable
239 link.SetRemoteIpv4(remoteIp); in __anond28ca6eb0902()
241 ret = GetLocalIpByRemoteIp(remoteIp.c_str(), localIp, sizeof(localIp));
256 std::string remoteIp("172.30.1.2"); variable
263 auto ret = GetRemoteUuidByIp(remoteIp.c_str(), localIp, sizeof(localIp));
269 link.SetRemoteIpv4(remoteIp); in __anond28ca6eb0b02()
271 ret = GetRemoteUuidByIp(remoteIp.c_str(), localIp, sizeof(localIp));
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/
H A Dwifi_direct_manager_virtual.c73 static int32_t GetLocalIpByRemoteIp(const char *remoteIp, char *localIp, int32_t localIpSize) in GetLocalIpByRemoteIp() argument
75 (void)remoteIp; in GetLocalIpByRemoteIp()
81 static int32_t GetRemoteUuidByIp(const char *remoteIp, char *uuid, int32_t uuidSize) in GetRemoteUuidByIp() argument
83 (void)remoteIp; in GetRemoteUuidByIp()
95 static void NotifyOnline(const char *remoteMac, const char *remoteIp, const char *remoteUuid, bool … in NotifyOnline() argument
98 (void)remoteIp; in NotifyOnline()
103 static void NotifyOffline(const char *remoteMac, const char *remoteIp, const char *remoteUuid, cons… in NotifyOffline() argument
106 (void)remoteIp; in NotifyOffline()
H A Dwifi_direct_manager.h27 …void (*onDeviceOnLine)(const char *remoteMac, const char *remoteIp, const char *remoteUuid, bool i…
28 …void (*onDeviceOffLine)(const char *remoteMac, const char *remoteIp, const char *remoteUuid, const…
65 int32_t (*getLocalIpByRemoteIp)(const char *remoteIp, char *localIp, int32_t localIpSize);
66 int32_t (*getRemoteUuidByIp)(const char *remoteIp, char *uuid, int32_t uuidSize);
78 …void (*notifyOnline)(const char *remoteMac, const char *remoteIp, const char *remoteUuid, bool isS…
79 …void (*notifyOffline)(const char *remoteMac, const char *remoteIp, const char *remoteUuid, const c…
H A Dwifi_direct_manager.cpp323 if (innerLink.GetRemoteIpv4() == remoteIp) { in GetLocalIpByRemoteIpOnce()
330 if (innerLink.GetRemoteIpv6() == remoteIp) { in GetLocalIpByRemoteIpOnce()
345 OHOS::SoftBus::WifiDirectAnonymizeIp(remoteIp).c_str(), in GetLocalIpByRemoteIpOnce()
367 static int32_t GetRemoteUuidByIp(const char *remoteIp, char *uuid, int32_t uuidSize) in GetRemoteUuidByIp() argument
371 if (innerLink.GetRemoteIpv4() == remoteIp || innerLink.GetRemoteIpv6() == remoteIp) { in GetRemoteUuidByIp()
386 OHOS::SoftBus::WifiDirectAnonymizeIp(remoteIp).c_str(), in GetRemoteUuidByIp()
424 OHOS::SoftBus::WifiDirectAnonymizeIp(remoteIp).c_str(), in NotifyOnline()
428 listener.onDeviceOnLine(remoteMac, remoteIp, remoteUuid, isSource); in NotifyOnline()
437 OHOS::SoftBus::WifiDirectAnonymizeIp(remoteIp).c_str(), in NotifyOffline()
442 listener.onDeviceOffLine(remoteMac, remoteIp, remoteUuid, localIp); in NotifyOffline()
[all …]
H A Dwifi_direct_types.h91 char remoteIp[IP_STR_MAX_LEN]; member
106 char remoteIp[IP_STR_MAX_LEN]; member
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/mini_discover/
H A Dcoap_discover.c90 static void GetBuildCoapParam(const CoapPacket *pkt, const char *remoteUrl, const char *remoteIp, C… in GetBuildCoapParam() argument
92 param->remoteIp = remoteIp; in GetBuildCoapParam()
106 static int32_t CreateUnicastCoapParam(const char *remoteUrl, const char *remoteIp, CoapBuildParam *… in CreateUnicastCoapParam() argument
108 if ((remoteUrl == NULL) || (remoteIp == NULL)) { in CreateUnicastCoapParam()
111 param->remoteIp = remoteIp; in CreateUnicastCoapParam()
273 param.remoteIp = ipString; in CoapPostServiceDiscoverEx()
553 if (strncpy_s(host, sizeof(host), responseSettings->remoteIp, in SendDiscoveryRspEx()
554 strlen(responseSettings->remoteIp)) != EOK) { in SendDiscoveryRspEx()
H A Dcoap_app.c48 const char *remoteIp; member
185 if (coapRequest == NULL || coapRequest->remoteIp == NULL) { in CoapSendMsg()
190 sockAddr.sin_addr.s_addr = inet_addr(coapRequest->remoteIp); in CoapSendMsg()
222 coapRequest.remoteIp = param->remoteIp; in CoapSendMessageEx()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/
H A Dnstackx_device_remote.c41 struct in_addr remoteIp; member
214 if (remoteNode->remoteIp.s_addr == remoteIp->s_addr) { in FindRemoteNodeByRemoteIp()
283 remoteNode->remoteIp = *remoteIp; in CreateRemoteNode()
601 const struct in_addr *remoteIp, const DeviceInfo *deviceInfo) in CheckAndCreateRemoteNode() argument
645 RemoteNode *remoteNode = FindRemoteNodeByRemoteIp(rxIface, remoteIp); in UpdateRemoteNodeByDeviceInfo()
789 if (remoteNode->remoteIp.s_addr != 0) { in GetRxIfaceFirstRemoteNode()
826 return &remoteNode->remoteIp; in GetRemoteDeviceIpInner()
831 const struct in_addr *remoteIp; in GetRemoteDeviceIp() local
832 remoteIp = GetRemoteDeviceIpInner(g_remoteDeviceList, deviceId); in GetRemoteDeviceIp()
833 if (remoteIp != NULL) { in GetRemoteDeviceIp()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/udp_negotiation/
H A Dtrans_udp_manager_test.cpp720 char remoteIp[IP_LEN] = { 0 }; variable
721 ret = TransUdpGetIpAndConnectTypeById(channelId, localIp, remoteIp, maxIpLen, &connectType);
729 ret = TransUdpGetIpAndConnectTypeById(channelId, localIp, remoteIp, maxIpLen, &connectType);
772 char remoteIp[IP_LEN] = { 0 }; variable
775 ret = TransUdpGetIpAndConnectTypeById(channelId, localIp, remoteIp, IP_LEN, &connectType);
779 ret = TransUdpGetIpAndConnectTypeById(channelId, localIp, remoteIp, IP_LEN, &connectType);
895 char remoteIp[IP_LEN] = { 0 }; variable
896 ret = TransUdpGetIpAndConnectTypeById(channelId, localIp, remoteIp, 0, &connectType);
902 ret = TransUdpGetIpAndConnectTypeById(channelId, localIp, remoteIp, IP_LEN, &connectType);
916 char remoteIp[IP_LEN] = { 0 }; variable
[all …]
/ohos5.0/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_netfirewall_test/
H A Dnetsys_netfirewall_test.cpp48 std::vector<NetFirewallIpParam> remoteIp; in GeIpFirewallRule() local
54 remoteIp.push_back(remoteIpParam); in GeIpFirewallRule()
55 rule->remoteIps = remoteIp; in GeIpFirewallRule()
112 printf("\tdestIp=%s\n", (info->remoteIp).c_str()); in OnIntercept()
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_tcp_connection_test.cpp293 const char *remoteIp = "192.168.11.33"; variable
294 int32_t ret = AuthOpenChannelWithAllIp(localIp, remoteIp, 37025);
296 ret = AuthOpenChannelWithAllIp(nullptr, remoteIp, 37025);
300 ret = AuthOpenChannelWithAllIp(localIp, remoteIp, 0);
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/mock/
H A Dtrans_tcp_direct_message_test_mock.cpp85 int32_t GetLocalIpByRemoteIp(const char *remoteIp, char *localIp, int32_t localIpSize) in GetLocalIpByRemoteIp() argument
87 … return GetTransTcpDirectMessageInterface()->GetLocalIpByRemoteIp(remoteIp, localIp, localIpSize); in GetLocalIpByRemoteIp()
125 int32_t GetRemoteUuidByIp(const char *remoteIp, char *localIp, int32_t localIpSize) in GetRemoteUuidByIp() argument
127 return GetTransTcpDirectMessageInterface()->GetRemoteUuidByIp(remoteIp, localIp, localIpSize); in GetRemoteUuidByIp()
H A Dtrans_tcp_direct_message_test_mock.h49 …virtual int32_t GetLocalIpByRemoteIp(const char *remoteIp, char *localIp, int32_t localIpSize) = 0;
57 virtual int32_t GetRemoteUuidByIp(const char *remoteIp, char *localIp, int32_t localIpSize) = 0;
99 …MOCK_METHOD3(GetLocalIpByRemoteIp, int32_t (const char *remoteIp, char *localIp, int32_t localIpSi…
107 …MOCK_METHOD3(GetRemoteUuidByIp, int32_t (const char *remoteIp, char *localIp, int32_t localIpSize)…
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/data/
H A Dinner_link.cpp347 std::string remoteIp; in GenerateLink() local
350 remoteIp = GetRemoteIpv4(); in GenerateLink()
353 remoteIp = GetRemoteIpv6(); in GenerateLink()
359 if (strcpy_s(link.remoteIp, IP_STR_MAX_LEN, remoteIp.c_str()) != EOK) { in GenerateLink()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane_listener/
H A Dlnn_lane_listener_test.cpp637 EXPECT_EQ(strcpy_s(link.remoteIp, IP_LEN, PEER_IP_P2P), EOK);
640 LnnOnWifiDirectDeviceOnline(nullptr, link.remoteIp, link.remoteUuid, true);
642 LnnOnWifiDirectDeviceOnline(link.remoteMac, link.remoteIp, nullptr, true);
643 LnnOnWifiDirectDeviceOnline(link.remoteMac, link.remoteIp, link.remoteUuid, true);
645 LnnOnWifiDirectDeviceOffline(nullptr, link.remoteIp, link.remoteUuid, localIp);
647 LnnOnWifiDirectDeviceOffline(link.remoteMac, link.remoteIp, nullptr, localIp);
648 LnnOnWifiDirectDeviceOffline(link.remoteMac, link.remoteIp, link.remoteUuid, localIp);
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/processor/
H A Dp2p_v1_processor.cpp823 std::string remoteIp; in ProcessConnectRequestAsGo() local
824 auto ret = P2pAdapter::RequestGcIp(remoteMac, remoteIp); in ProcessConnectRequestAsGo()
844 [localMac, remoteMac, localIp, remoteIp](InnerLink &link) { in ProcessConnectRequestAsGo()
849 link.SetRemoteIpv4(remoteIp); in ProcessConnectRequestAsGo()
1580 std::string remoteIp; in CreateGroup() local
1581 int32_t ret = P2pAdapter::RequestGcIp(remoteMac, remoteIp); in CreateGroup()
1603 link.SetRemoteIpv4(remoteIp); in CreateGroup()
1653 std::string remoteIp = msg.GetLegacyP2pGoIp(); in ConnectGroup() local
1657 link.SetRemoteIpv4(remoteIp); in ConnectGroup()
1845 param.remoteIp = msg.GetLegacyP2pGoIp(); in OpenAuthConnection()
[all …]
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/
H A Dnstackx_device_remote.h33 const struct in_addr *remoteIp, const DeviceInfo *deviceInfo, int8_t *updated);
H A Dnstackx_device_local.h69 CoapCtxType *LocalIfaceGetCoapCtxByRemoteIp(const struct in_addr *remoteIp, uint8_t serverType);
/ohos5.0/foundation/communication/dsoftbus/core/authentication/interface/
H A Dauth_channel.h43 int32_t AuthOpenChannelWithAllIp(const char *localIp, const char *remoteIp, int32_t port);
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/mini_discover/
H A Dcoap_adapter.h49 char *remoteIp; member
/ohos5.0/foundation/communication/dsoftbus/core/authentication/include/
H A Dauth_tcp_connection.h49 int32_t SocketConnectDeviceWithAllIp(const char *localIp, const char *remoteIp, int32_t port, bool …
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/coap_discover/
H A Dcoap_discover.h86 int32_t CoapSendServiceMsg(MsgCtx *msgCtx, const char *remoteIpStr, const struct in_addr *remoteIp);
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/include/
H A Dtrans_udp_channel_manager.h87 int32_t TransUdpGetIpAndConnectTypeById(int32_t channelId, char *localIp, char *remoteIp, uint32_t …
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/
H A Dtrans_tcp_direct_wifi_test.cpp45 int32_t GetLocalIpByRemoteIp(const char *remoteIp, char *localIp, int32_t localIpSize);
55 int32_t GetLocalIpByRemoteIp(const char *remoteIp, char *localIp, int32_t localIpSize) in GetLocalIpByRemoteIp() argument
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/channel/
H A Dauth_negotiate_channel.h47 std::string remoteIp; member

12