/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/ |
H A D | trans_tcp_direct_wifi.c | 70 char myIp[IP_LEN] = {0}; in GetMoudleType() local 77 int32_t ret = mgr->getLocalIpByRemoteIp(peerIp, myIp, sizeof(myIp)); in GetMoudleType() 83 if (IsHmlIpAddr(myIp)) { in GetMoudleType() 84 module = GetModuleByHmlIp(myIp); in GetMoudleType()
|
H A D | trans_tcp_direct_json.c | 52 char *VerifyP2pPack(const char *myIp, int32_t myPort, const char *peerIp) in VerifyP2pPack() argument 54 if (myIp == NULL || myPort <= 0) { in VerifyP2pPack() 67 !AddStringToJsonObject(json, P2P_IP, myIp) || in VerifyP2pPack()
|
H A D | trans_tcp_direct_p2p.c | 308 if (strncmp(item->myIp, ip, IP_LEN) == 0) { in GetModuleByHmlIp() 366 if (strncmp(item->myIp, ip, IP_LEN) == 0 && strncmp(item->peerUuid, peerUuid, UUID_BUF_LEN) == 0) { in StartHmlListener() 389 if (strncpy_s(item->myIp, IP_LEN, ip, IP_LEN) != EOK || in StartHmlListener() 520 static int32_t VerifyP2p(AuthHandle authHandle, const char *myIp, const char *peerIp, int32_t myPort, int64_t seq) in VerifyP2p() argument 525 msg = VerifyP2pPack(myIp, myPort, peerIp); in VerifyP2p() 700 static void OutputAnonymizeIpAddress(const char *myIp, const char *peerIp) in OutputAnonymizeIpAddress() argument 703 ConvertAnonymizeIpAddress(anonymizedMyIp, IP_LEN, myIp, IP_LEN); in OutputAnonymizeIpAddress() 706 TRANS_LOGE(TRANS_CTRL, "StartListener failed, myIp=%{public}s peerIp=%{public}s", anonymizedMyIp, anonymizedPeerIp); in OutputAnonymizeIpAddress() 709 static int32_t PackAndSendVerifyP2pRsp(const char *myIp, int32_t myPort, int64_t seq, bool isAuthLink, in PackAndSendVerifyP2pRsp() argument 713 char *reply = VerifyP2pPack(myIp, myPor in PackAndSendVerifyP2pRsp() 752 char myIp[IP_LEN] = {0}; OnVerifyP2pRequest() local 793 ConnectTcpDirectPeer(const char *addr, int port, const char *myIp) ConnectTcpDirectPeer() argument [all...] |
H A D | trans_tcp_direct_message.c | 334 char myIp[IP_LEN] = { 0 }; in GetServerSideIpInfo() local 336 if (LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, myIp, sizeof(myIp)) != SOFTBUS_OK) { in GetServerSideIpInfo() 347 int32_t ret = mgr->getLocalIpByRemoteIp(appInfo->peerData.addr, myIp, sizeof(myIp)); in GetServerSideIpInfo() 353 if (LnnSetLocalStrInfo(STRING_KEY_P2P_IP, myIp) != SOFTBUS_OK) { in GetServerSideIpInfo() 360 if (strcpy_s(ip, len, myIp) != EOK) { in GetServerSideIpInfo() 393 char myIp[IP_LEN] = { 0 }; in NotifyChannelOpened() local 394 int32_t ret = conn.serverSide ? GetServerSideIpInfo(&conn.appInfo, myIp, IP_LEN) in NotifyChannelOpened() 395 : GetClientSideIpInfo(&conn.appInfo, myIp, IP_LE in NotifyChannelOpened() [all...] |
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/ |
H A D | trans_tcp_direct_json_test.cpp | 88 const char *myIp = MY_IP; in HWTEST_F() local 90 ret = VerifyP2pPack(myIp, myPort, peerIp); in HWTEST_F() 94 ret = VerifyP2pPack(myIp, myPort, peerIp); in HWTEST_F()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/ |
H A D | file_adapter.c | 204 const char *myIp, const uint8_t *key, uint32_t keyLen, DFileMsgReceiver msgReceiver, int32_t *filePort) in StartNStackXDFileServer() 206 if (myIp == NULL || filePort == NULL) { in StartNStackXDFileServer() 212 int32_t ret = CreateServerSocket(myIp, &fd, &port); in StartNStackXDFileServer() 218 if (GetDomainByAddr(myIp) == SOFTBUS_AF_INET6) { in StartNStackXDFileServer() 220 ret = InitSockAddrIn6ByIpPort(myIp, port, &localAddr); in StartNStackXDFileServer() 230 ret = InitSockAddrInByIpPort(myIp, port, &localAddr); in StartNStackXDFileServer() 247 ConvertAnonymizeIpAddress(animizedIp, IP_LEN, myIp, IP_LEN); in StartNStackXDFileServer() 203 StartNStackXDFileServer( const char *myIp, const uint8_t *key, uint32_t keyLen, DFileMsgReceiver msgReceiver, int32_t *filePort) StartNStackXDFileServer() argument
|
/foundation/communication/dsoftbus/sdk/transmission/session/src/ |
H A D | client_trans_socket_manager.c | 247 static int32_t ClientTransGetTdcIp(int32_t channelId, char *myIp, int32_t ipLen) in ClientTransGetTdcIp() argument 255 if (strcpy_s(myIp, ipLen, channel.detail.myIp) != EOK) { in ClientTransGetTdcIp() 256 TRANS_LOGE(TRANS_SDK, "strcpy_s ip failed, len=%{public}zu", strlen(channel.detail.myIp)); in ClientTransGetTdcIp() 263 static int32_t ClientTransGetUdpIp(int32_t channelId, char *myIp, int32_t ipLen) in ClientTransGetUdpIp() argument 271 if (strcpy_s(myIp, ipLen, channel.info.myIp) != EOK) { in ClientTransGetUdpIp() 272 TRANS_LOGE(TRANS_SDK, "strcpy_s ip failed, len=%{public}zu", strlen(channel.info.myIp)); in ClientTransGetUdpIp() 306 char myIp[IP_LEN] = {0}; in ClientTransCheckNeedDel() local 308 if (ClientTransGetUdpIp(sessionNode->channelId, myIp, sizeo in ClientTransCheckNeedDel() [all...] |
/foundation/communication/dsoftbus/sdk/frame/small/src/ |
H A D | trans_client_stub.c | 48 channel.myIp = (char *)ReadString(data, &size); in ClientOnChannelOpened() 49 TRANS_CHECK_AND_RETURN_RET_LOGE(channel.myIp != NULL, SOFTBUS_IPC_ERR, TRANS_CTRL, "pointer null error"); in ClientOnChannelOpened() 54 channel.myIp = (char *)ReadString(data, &size); in ClientOnChannelOpened()
|
/foundation/communication/dsoftbus/core/connection/common/src/ |
H A D | softbus_socket.c | 493 static int32_t GetIfNameByIp(const char *myIp, int32_t domain, char *ifName, int32_t ifNameMaxLen) in GetIfNameByIp() argument 495 if (myIp == NULL || ifName == NULL || strcmp(myIp, BIND_ADDR_ALL) == 0) { in GetIfNameByIp() 504 ConvertAnonymizeIpAddress(animizedIp, IP_LEN, myIp, IP_LEN); in GetIfNameByIp() 512 if (inet_aton(myIp, &inAddr) == 0) { in GetIfNameByIp() 538 void BindToInterface(const char *myIp, int32_t domain, int fd, char *ifName, int32_t ifNameMaxLen) in BindToInterface() argument 543 int32_t ret = GetIfNameByIp(myIp, domain, ifName, ifNameMaxLen); in BindToInterface()
|
H A D | softbus_tcp_socket.c | 278 static int32_t OpenTcpClientSocket(const ConnectOption *option, const char *myIp, bool isNonBlock) in OpenTcpClientSocket() argument 311 ret = BindTcpClientAddr(domain, fd, myIp); in OpenTcpClientSocket() 319 BindToInterface(myIp, domain, fd, (char *)(option->socketOption.ifName), IF_NAME_SIZE); in OpenTcpClientSocket()
|
/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/include/ |
H A D | trans_tcp_direct_json.h | 31 char *VerifyP2pPack(const char *myIp, int32_t myPort, const char *peerIp);
|
H A D | trans_tcp_direct_listener.h | 27 char myIp[IP_LEN]; member
|
H A D | trans_tcp_direct_sessionconn.h | 63 char myIp[IP_LEN]; member
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/include/ |
H A D | file_adapter.h | 28 int32_t StartNStackXDFileServer(const char *myIp, const uint8_t *key,
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/ |
H A D | dstream_adaptor_client_test.c | 65 p1->myIp = "127.0.0.1"; in ConstructVtpStreamOpenParam() 73 p2->myIp = "127.0.0.1"; in ConstructVtpStreamOpenParam()
|
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/mock/ |
H A D | trans_tcp_direct_p2p_test_mock.cpp | 74 char *VerifyP2pPack(const char *myIp, int32_t myPort, const char *peerIp) in VerifyP2pPack() argument 76 return GetTransTcpDirectP2pInterface()->VerifyP2pPack(myIp, myPort, peerIp); in VerifyP2pPack()
|
H A D | trans_tcp_direct_p2p_test_mock.h | 40 virtual char *VerifyP2pPack(const char *myIp, int32_t myPort, const char *peerIp) = 0; 73 MOCK_METHOD3(VerifyP2pPack, char *(const char *myIp, int32_t myPort, const char *peerIp));
|
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/ |
H A D | wifi_direct_manager_test.cpp | 162 char myIp[IP_LEN] = { 0 }; in HWTEST_F() local 163 auto ret = GetLocalIpByUuid(uuid.c_str(), myIp, sizeof(myIp)); in HWTEST_F() 176 ret = GetLocalIpByUuid(uuid.c_str(), myIp, sizeof(myIp)); in HWTEST_F()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/adaptor/include/ |
H A D | client_trans_udp_stream_interface.h | 56 char *myIp; member
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/tcp_direct/include/ |
H A D | client_trans_tcp_direct_manager.h | 38 char myIp[IP_LEN]; member
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/src/ |
H A D | client_trans_stream.c | 183 VtpStreamOpenParam p1 = { "DSOFTBUS_STREAM", channel->myIp, in TransOnstreamChannelOpened() 194 VtpStreamOpenParam p1 = { "DSOFTBUS_STREAM", channel->myIp, channel->peerIp, in TransOnstreamChannelOpened()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/ |
H A D | lnn_heartbeat_utils.c | 156 char myIp[IP_LEN] = { 0 }; in HbHasActiveHmlConnection() local 166 if (pManager->getLocalIpByUuid(info.uuid, myIp, sizeof(myIp)) == SOFTBUS_OK) { in HbHasActiveHmlConnection()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/common/include/ |
H A D | client_trans_udp_manager.h | 50 char myIp[IP_LEN]; member
|
/foundation/communication/dsoftbus/core/common/include/ |
H A D | softbus_def.h | 165 char *myIp; member
|
/foundation/communication/dsoftbus/core/connection/interface/ |
H A D | softbus_socket.h | 93 void BindToInterface(const char *myIp, int32_t domain, int fd, char *ifName, int32_t ifNameMaxLen);
|