/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/ |
H A D | wifi_direct_manager_virtual.c | 73 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 isSource) in NotifyOnline() argument 98 (void)remoteIp; in NotifyOnline() 103 static void NotifyOffline(const char *remoteMac, const char *remoteIp, const char *remoteUuid, const char *localIp) in NotifyOffline() argument 106 (void)remoteIp; in NotifyOffline()
|
H A D | wifi_direct_manager.h | 27 void (*onDeviceOnLine)(const char *remoteMac, const char *remoteIp, const char *remoteUuid, bool isSource); 28 void (*onDeviceOffLine)(const char *remoteMac, const char *remoteIp, const char *remoteUuid, const char *localIp); 62 int32_t (*getLocalIpByRemoteIp)(const char *remoteIp, char *localIp, int32_t localIpSize); 63 int32_t (*getRemoteUuidByIp)(const char *remoteIp, char *uuid, int32_t uuidSize); 76 void (*notifyOnline)(const char *remoteMac, const char *remoteIp, const char *remoteUuid, bool isSource); 77 void (*notifyOffline)(const char *remoteMac, const char *remoteIp, const char *remoteUuid, const char *localIp);
|
H A D | wifi_direct_manager.cpp | 315 static int32_t GetLocalIpByRemoteIpOnce(const char *remoteIp, char *localIp, int32_t localIpSize) in GetLocalIpByRemoteIpOnce() argument 319 [&found, &localIp, localIpSize, remoteIp](const OHOS::SoftBus::InnerLink &innerLink) { in GetLocalIpByRemoteIpOnce() 320 if (innerLink.GetRemoteIpv4() == remoteIp) { in GetLocalIpByRemoteIpOnce() 327 if (innerLink.GetRemoteIpv6() == remoteIp) { in GetLocalIpByRemoteIpOnce() 338 CONN_LOGI(CONN_WIFI_DIRECT, "not found %{public}s", OHOS::SoftBus::WifiDirectAnonymizeIp(remoteIp).c_str()); in GetLocalIpByRemoteIpOnce() 341 CONN_LOGI(CONN_WIFI_DIRECT, "remoteIp=%{public}s localIp=%{public}s", in GetLocalIpByRemoteIpOnce() 342 OHOS::SoftBus::WifiDirectAnonymizeIp(remoteIp).c_str(), in GetLocalIpByRemoteIpOnce() 349 static int32_t GetLocalIpByRemoteIp(const char *remoteIp, char *localIp, int32_t localIpSize) in GetLocalIpByRemoteIp() argument 353 if (GetLocalIpByRemoteIpOnce(remoteIp, localIp, localIpSize) != SOFTBUS_OK) { in GetLocalIpByRemoteIp() 364 static int32_t GetRemoteUuidByIp(const char *remoteIp, cha argument 420 NotifyOnline(const char *remoteMac, const char *remoteIp, const char *remoteUuid, bool isSource) NotifyOnline() argument 433 NotifyOffline(const char *remoteMac, const char *remoteIp, const char *remoteUuid, const char *localIp) NotifyOffline() argument [all...] |
H A D | wifi_direct_types.h | 91 char remoteIp[IP_STR_MAX_LEN]; member 106 char remoteIp[IP_STR_MAX_LEN]; member
|
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/ |
H A D | wifi_direct_manager_test.cpp | 192 std::string remoteIp("172.30.1.2"); in HWTEST_F() 195 auto ret = GetLocalIpByRemoteIpOnce(remoteIp.c_str(), localIp, sizeof(localIp)); in HWTEST_F() 201 ret = GetLocalIpByRemoteIpOnce(remoteIp.c_str(), localIp, sizeof(localIp)); in HWTEST_F() 204 LinkManager::GetInstance().ProcessIfAbsent(InnerLink::LinkType::HML, uuid, [&remoteIp](InnerLink &link) { in HWTEST_F() 207 link.SetRemoteIpv4(remoteIp); in HWTEST_F() 209 ret = GetLocalIpByRemoteIpOnce(remoteIp.c_str(), localIp, sizeof(localIp)); in HWTEST_F() 231 std::string remoteIp("172.30.1.2"); in HWTEST_F() 233 auto ret = GetLocalIpByRemoteIp(remoteIp.c_str(), localIp, sizeof(localIp)); in HWTEST_F() 236 LinkManager::GetInstance().ProcessIfAbsent(InnerLink::LinkType::HML, uuid, [&remoteIp](InnerLink &link) { in HWTEST_F() 239 link.SetRemoteIpv4(remoteIp); in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
H A D | nstackx_device_remote.c | 41 struct in_addr remoteIp; member 208 static RemoteNode *FindRemoteNodeByRemoteIp(const RxIface* rxIface, const struct in_addr *remoteIp) in FindRemoteNodeByRemoteIp() argument 214 if (remoteNode->remoteIp.s_addr == remoteIp->s_addr) { in FindRemoteNodeByRemoteIp() 274 static RemoteNode *CreateRemoteNode(RxIface *rxIface, const struct in_addr *remoteIp, const DeviceInfo *deviceInfo) in CreateRemoteNode() argument 283 remoteNode->remoteIp = *remoteIp; in CreateRemoteNode() 593 const struct in_addr *remoteIp, const DeviceInfo *deviceInfo) in CheckAndCreateRemoteNode() 605 RemoteNode *remoteNode = CreateRemoteNode(rxIface, remoteIp, deviceInfo); in CheckAndCreateRemoteNode() 616 const struct in_addr *remoteIp, cons in UpdateRemoteNodeByDeviceInfo() 592 CheckAndCreateRemoteNode(RxIface *rxIface, const struct in_addr *remoteIp, const DeviceInfo *deviceInfo) CheckAndCreateRemoteNode() argument 615 UpdateRemoteNodeByDeviceInfo(const char *deviceId, const NSTACKX_InterfaceInfo *interfaceInfo, const struct in_addr *remoteIp, const DeviceInfo *deviceInfo, int8_t *updated) UpdateRemoteNodeByDeviceInfo() argument 823 const struct in_addr *remoteIp; GetRemoteDeviceIp() local [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/mini_discover/ |
H A D | coap_discover.c | 99 static void GetBuildCoapParam(const CoapPacket *pkt, const char *remoteUrl, const char *remoteIp, CoapBuildParam *param) in GetBuildCoapParam() argument 101 param->remoteIp = remoteIp; in GetBuildCoapParam() 115 static int32_t CreateUnicastCoapParam(const char *remoteUrl, const char *remoteIp, CoapBuildParam *param) in CreateUnicastCoapParam() argument 117 if ((remoteUrl == NULL) || (remoteIp == NULL)) { in CreateUnicastCoapParam() 120 param->remoteIp = remoteIp; in CreateUnicastCoapParam() 282 param.remoteIp = ipString; in CoapPostServiceDiscoverEx() 562 if (strncpy_s(host, sizeof(host), responseSettings->remoteIp, in SendDiscoveryRspEx() 563 strlen(responseSettings->remoteIp)) ! in SendDiscoveryRspEx() [all...] |
H A D | coap_app.c | 48 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()
|
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/mock/ |
H A D | trans_tcp_direct_message_test_mock.cpp | 85 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 D | trans_tcp_direct_message_test_mock.h | 49 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 localIpSize));
107 MOCK_METHOD3(GetRemoteUuidByIp, int32_t (const char *remoteIp, char *localIp, int32_t localIpSize));
|
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_netfirewall_test/ |
H A D | netsys_netfirewall_test.cpp | 48 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()
|
/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_tcp_connection_test.cpp | 293 const char *remoteIp = "192.168.11.33"; in HWTEST_F() local 294 int32_t ret = AuthOpenChannelWithAllIp(localIp, remoteIp, 37025); in HWTEST_F() 296 ret = AuthOpenChannelWithAllIp(nullptr, remoteIp, 37025); in HWTEST_F() 300 ret = AuthOpenChannelWithAllIp(localIp, remoteIp, 0); in HWTEST_F()
|
/foundation/communication/dsoftbus/core/authentication/interface/ |
H A D | auth_channel.h | 43 int32_t AuthOpenChannelWithAllIp(const char *localIp, const char *remoteIp, int32_t port);
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/ |
H A D | nstackx_device_remote.h | 33 const struct in_addr *remoteIp, const DeviceInfo *deviceInfo, int8_t *updated);
|
H A D | nstackx_device_local.h | 69 CoapCtxType *LocalIfaceGetCoapCtxByRemoteIp(const struct in_addr *remoteIp, uint8_t serverType);
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/mini_discover/ |
H A D | coap_adapter.h | 49 char *remoteIp; member
|
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/data/ |
H A D | inner_link.cpp | 335 std::string remoteIp; in GenerateLink() local 338 remoteIp = GetRemoteIpv4(); in GenerateLink() 341 remoteIp = GetRemoteIpv6(); in GenerateLink() 347 if (strcpy_s(link.remoteIp, IP_STR_MAX_LEN, remoteIp.c_str()) != EOK) { in GenerateLink()
|
/foundation/communication/dsoftbus/core/authentication/include/ |
H A D | auth_tcp_connection.h | 49 int32_t SocketConnectDeviceWithAllIp(const char *localIp, const char *remoteIp, int32_t port, bool isBlockMode);
|
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane_listener/ |
H A D | lnn_lane_listener_test.cpp | 637 EXPECT_EQ(strcpy_s(link.remoteIp, IP_LEN, PEER_IP_P2P), EOK); in HWTEST_F() 640 LnnOnWifiDirectDeviceOnline(nullptr, link.remoteIp, link.remoteUuid, true); in HWTEST_F() 642 LnnOnWifiDirectDeviceOnline(link.remoteMac, link.remoteIp, nullptr, true); in HWTEST_F() 643 LnnOnWifiDirectDeviceOnline(link.remoteMac, link.remoteIp, link.remoteUuid, true); in HWTEST_F() 645 LnnOnWifiDirectDeviceOffline(nullptr, link.remoteIp, link.remoteUuid, localIp); in HWTEST_F() 647 LnnOnWifiDirectDeviceOffline(link.remoteMac, link.remoteIp, nullptr, localIp); in HWTEST_F() 648 LnnOnWifiDirectDeviceOffline(link.remoteMac, link.remoteIp, link.remoteUuid, localIp); in HWTEST_F()
|
/foundation/CastEngine/castengine_cast_framework/common/include/private/ |
H A D | cast_service_common.h | 51 std::string remoteIp; member
|
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/channel/ |
H A D | auth_negotiate_channel.h | 47 std::string remoteIp; member
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/coap_discover/ |
H A D | coap_discover.h | 86 int32_t CoapSendServiceMsg(MsgCtx *msgCtx, const char *remoteIpStr, const struct in_addr *remoteIp);
|
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/processor/ |
H A D | p2p_v1_processor.cpp | 522 GetWifiDirectManager()->notifyOnline(sinkLink.remoteMac, sinkLink.remoteIp, sinkLink.remoteUuid, active_); in ProcessNegotiateCommandAtWaitingAuthHandShakeState() 596 GetWifiDirectManager()->notifyOnline(sinkLink.remoteMac, sinkLink.remoteIp, sinkLink.remoteUuid, active_); in ProcessAuthConnEvent() 844 std::string remoteIp; in ProcessConnectRequestAsGo() local 845 auto ret = P2pAdapter::RequestGcIp(remoteMac, remoteIp); in ProcessConnectRequestAsGo() 848 CONN_LOGI(CONN_WIFI_DIRECT, "apply gc ip %{public}s", WifiDirectAnonymizeIp(remoteIp).c_str()); in ProcessConnectRequestAsGo() 865 [localMac, remoteMac, localIp, remoteIp](InnerLink &link) { in ProcessConnectRequestAsGo() 870 link.SetRemoteIpv4(remoteIp); in ProcessConnectRequestAsGo() 1578 std::string remoteIp; in UpdateWhenCreateSuccess() local 1579 int32_t ret = P2pAdapter::RequestGcIp(remoteMac, remoteIp); in UpdateWhenCreateSuccess() 1597 InnerLink::LinkType::P2P, msg.GetRemoteDeviceId(), [localMac, localIp, remoteMac, remoteIp](InnerLin in UpdateWhenCreateSuccess() 1690 std::string remoteIp = msg.GetLegacyP2pGoIp(); ConnectGroup() local [all...] |
/foundation/CastEngine/castengine_cast_framework/service/src/device_manager/src/ |
H A D | cast_device_data_manager.cpp | 425 const std::string &remoteIp) in SetDeviceIp() 434 it->device.remoteIp = remoteIp; in SetDeviceIp() 424 SetDeviceIp(const std::string &deviceId, const std::string &localIp, const std::string &remoteIp) SetDeviceIp() argument
|
/foundation/CastEngine/castengine_cast_framework/service/src/device_manager/include/ |
H A D | cast_device_data_manager.h | 76 bool SetDeviceIp(const std::string &deviceId, const std::string &localIp, const std::string &remoteIp);
|