Home
last modified time | relevance | path

Searched refs:peerIp (Results 1 – 25 of 88) sorted by relevance

1234

/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/manager/trans_link_listener_test/
H A Dtrans_link_listener_test.cpp72 const char *peerIp = "192.168.11.33"; variable
77 OnWifiDirectDeviceOffLine(peerMac, peerIp, peerUuid, localIp);
91 const char *peerIp = "192.168.11.33"; variable
96 OnWifiDirectDeviceOffLine(peerMac, peerIp, peerUuid, peerIp);
124 const char *peerIp = "192.168.11.33"; variable
130 OnWifiDirectDeviceOnLine(peerMac, peerIp, peerUuid, isSource);
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/src/
H A Dlnn_wifi_adpter_mock.cpp66 char peerIp[] = "127.1.1.1"; in ActionOfLnnConnectP2p() local
68 if (strncpy_s(linkInfo.linkInfo.p2p.connInfo.peerIp, IP_LEN, peerIp, strlen(peerIp)) != EOK) { in ActionOfLnnConnectP2p()
166 int32_t RemoveAuthSessionServer(const char *peerIp) in RemoveAuthSessionServer() argument
168 return GetWifiAdpterInterface()->RemoveAuthSessionServer(peerIp); in RemoveAuthSessionServer()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_lane_link_p2p_virtual.c43 int32_t CheckIsAuthSessionServer(const char *peerIp, bool *isServer) in CheckIsAuthSessionServer() argument
45 (void)peerIp; in CheckIsAuthSessionServer()
50 int32_t RemoveAuthSessionServer(const char *peerIp) in RemoveAuthSessionServer() argument
52 (void)peerIp; in RemoveAuthSessionServer()
H A Dlnn_lane_listener.c354 static int32_t GetStateNotifyInfo(const char *peerIp, const char *peerUuid, LaneLinkInfo *laneLinkI… in GetStateNotifyInfo() argument
356 if (peerIp == NULL || peerUuid == NULL || laneLinkInfo == NULL) { in GetStateNotifyInfo()
360 laneLinkInfo->type = IsHmlIpAddr(peerIp) ? LANE_HML : LANE_P2P; in GetStateNotifyInfo()
361 if (strncpy_s(laneLinkInfo->linkInfo.p2p.connInfo.peerIp, IP_LEN, peerIp, IP_LEN) != EOK) { in GetStateNotifyInfo()
382 static void LnnOnWifiDirectDeviceOnline(const char *peerMac, const char *peerIp, const char *peerUu… in LnnOnWifiDirectDeviceOnline() argument
385 if (peerMac == NULL || peerUuid == NULL || peerIp == NULL) { in LnnOnWifiDirectDeviceOnline()
391 if (GetStateNotifyInfo(peerIp, peerUuid, &laneLinkInfo) != SOFTBUS_OK) { in LnnOnWifiDirectDeviceOnline()
400 static void LnnOnWifiDirectDeviceOffline(const char *peerMac, const char *peerIp, const char *peerU… in LnnOnWifiDirectDeviceOffline() argument
404 if (peerMac == NULL || peerUuid == NULL || peerIp == NULL) { in LnnOnWifiDirectDeviceOffline()
410 if (GetStateNotifyInfo(peerIp, peerUuid, &laneLinkInfo) != SOFTBUS_OK) { in LnnOnWifiDirectDeviceOffline()
[all …]
H A Dlnn_lane_link_p2p.c102 char peerIp[IP_LEN]; member
193 if (peerIp == NULL) { in AddAuthSessionFlag()
203 if (strcmp(peerIp, item->peerIp) == 0) { in AddAuthSessionFlag()
211 Anonymize(peerIp, &anonyPeerIp); in AddAuthSessionFlag()
220 if (strcpy_s(sessionItem->peerIp, IP_LEN, peerIp) != EOK) { in AddAuthSessionFlag()
234 if (peerIp == NULL || isServer == NULL) { in CheckIsAuthSessionServer()
244 if (strcmp(peerIp, item->peerIp) == 0) { in CheckIsAuthSessionServer()
253 Anonymize(peerIp, &anonyIp); in CheckIsAuthSessionServer()
261 if (peerIp == NULL) { in RemoveAuthSessionServer()
270 Anonymize(peerIp, &anonyIp); in RemoveAuthSessionServer()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/
H A Dtrans_tcp_direct_json_test.cpp84 const char *peerIp = PEER_IP; variable
85 char *ret = VerifyP2pPack(NULL, myPort, peerIp);
90 ret = VerifyP2pPack(myIp, myPort, peerIp);
94 ret = VerifyP2pPack(myIp, myPort, peerIp);
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/
H A Dfile_adapter.c252 …const char *peerIp, int32_t peerPort, const uint8_t *key, uint32_t keyLen, DFileMsgReceiver msgRec… in StartNStackXDFileClient() argument
254 if (peerIp == NULL) { in StartNStackXDFileClient()
260 if (GetDomainByAddr(peerIp) == SOFTBUS_AF_INET6) { in StartNStackXDFileClient()
262 int32_t ret = InitSockAddrIn6ByIpPort(peerIp, peerPort, &localAddr); in StartNStackXDFileClient()
271 int32_t ret = InitSockAddrInByIpPort(peerIp, peerPort, &localAddr); in StartNStackXDFileClient()
286 ConvertAnonymizeIpAddress(animizedIp, IP_LEN, peerIp, IP_LEN); in StartNStackXDFileClient()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
H A Dtrans_tcp_direct_json.c53 char *VerifyP2pPack(const char *myIp, int32_t myPort, const char *peerIp) in VerifyP2pPack() argument
64 if (peerIp != NULL) { in VerifyP2pPack()
65 AddStringToJsonObject(json, PEER_IP, peerIp); in VerifyP2pPack()
H A Dtrans_tcp_direct_p2p.c387 static int32_t VerifyP2p(AuthHandle authHandle, const char *myIp, const char *peerIp, int32_t myPor… in VerifyP2p() argument
392 msg = VerifyP2pPack(myIp, myPort, peerIp); in VerifyP2p()
567 static void OutputAnonymizeIpAddress(const char *myIp, const char *peerIp) in OutputAnonymizeIpAddress() argument
572 ConvertAnonymizeIpAddress(anonymizedPeerIp, IP_LEN, peerIp, IP_LEN); in OutputAnonymizeIpAddress()
618 char peerIp[IP_LEN] = {0}; in OnVerifyP2pRequest() local
622 int32_t ret = VerifyP2pUnPack(json, peerIp, IP_LEN, &peerPort); in OnVerifyP2pRequest()
630 ret = pManager->getLocalIpByRemoteIp(peerIp, myIp, sizeof(myIp)); in OnVerifyP2pRequest()
632 OutputAnonymizeIpAddress(myIp, peerIp); in OnVerifyP2pRequest()
648 OutputAnonymizeIpAddress(myIp, peerIp); in OnVerifyP2pRequest()
654 LaneAddP2pAddressByIp(peerIp, peerPort); in OnVerifyP2pRequest()
H A Dtrans_tcp_direct_wifi.c66 static ListenerModule GetMoudleType(ConnectType type, const char *peerIp) in GetMoudleType() argument
77 int32_t ret = mgr->getLocalIpByRemoteIp(peerIp, myIp, sizeof(myIp)); in GetMoudleType()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/manager/src/
H A Dtrans_link_listener.c44 static void OnWifiDirectDeviceOffLine(const char *peerMac, const char *peerIp, const char *peerUuid, in OnWifiDirectDeviceOffLine() argument
64 …TransOnLinkDown(nodeInfo.networkId, nodeInfo.uuid, nodeInfo.masterUdid, peerIp, COMBINE_TYPE(WIFI_… in OnWifiDirectDeviceOffLine()
85 static void OnWifiDirectDeviceOnLine(const char *peerMac, const char *peerIp, const char *peerUuid,… in OnWifiDirectDeviceOnLine() argument
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/include/
H A Dlnn_lane_link_p2p.h29 int32_t CheckIsAuthSessionServer(const char *peerIp, bool *isServer);
30 int32_t RemoveAuthSessionServer(const char *peerIp);
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/dfx/event/unittest/
H A Dconn_event_test.cpp82 .peerIp = "10.11.12.1",
142 .peerIp = "",
219 .peerIp = "127.1.1.1",
H A Dlnn_event_test.cpp56 .peerIp = "10.11.12.1",
98 .peerIp = "",
219 .peerIp = "127.1.1.1",
H A Ddisc_event_test.cpp80 .peerIp = "10.11.12.1",
126 .peerIp = "",
/ohos5.0/foundation/communication/dsoftbus/core/transmission/ipc/mini/
H A Dtrans_client_proxy.c40 int32_t ClientIpcOnChannelLinkDown(ChannelMsg *data, const char *networkId, const char *peerIp, int… in ClientIpcOnChannelLinkDown() argument
43 (void)peerIp; in ClientIpcOnChannelLinkDown()
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/interface/include/form/
H A Dconn_event_form.h90 const char *peerIp; // PEER_IP member
168 const char *peerIp; // PEER_IP member
H A Ddisc_event_form.h117 const char *peerIp; // PEER_IP member
195 const char *peerIp; // PEER_IP member
H A Dlnn_event_form.h126 const char *peerIp; // PEER_IP member
222 const char peerIp[IP_STR_MAX_LEN]; // PEER_IP member
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/include/
H A Dlnn_wifi_adpter_mock.h45 virtual int32_t RemoveAuthSessionServer(const char *peerIp) = 0;
68 MOCK_METHOD1(RemoveAuthSessionServer, int32_t (const char *peerIp));
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/
H A Ddstream_adaptor_client_test.c66 p1->peerIp = "127.0.0.1"; in ConstructVtpStreamOpenParam()
74 p2->peerIp = "127.0.0.1"; in ConstructVtpStreamOpenParam()
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_tcp_connection_test.cpp260 const char *peerIp = "192.168.11.33"; variable
261 int32_t ret = SocketConnectInner(nullptr, peerIp, 37025, AUTH, true);
265 ret = SocketConnectInner(localIp, peerIp, 37025, AUTH, true);
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/mock/
H A Dtrans_tcp_direct_p2p_test_mock.cpp74 char *VerifyP2pPack(const char *myIp, int32_t myPort, const char *peerIp) in VerifyP2pPack() argument
76 return GetTransTcpDirectP2pInterface()->VerifyP2pPack(myIp, myPort, peerIp); in VerifyP2pPack()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/include/
H A Dtrans_tcp_direct_json.h31 char *VerifyP2pPack(const char *myIp, int32_t myPort, const char *peerIp);
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/include/
H A Dfile_adapter.h31 int32_t StartNStackXDFileClient(const char *peerIp, int32_t peerPort, const uint8_t *key,

1234