/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/ |
H A D | wifi_direct_types.h | 90 char localIp[IP_STR_MAX_LEN]; 91 char remoteIp[IP_STR_MAX_LEN]; 105 char localIp[IP_STR_MAX_LEN]; 106 char remoteIp[IP_STR_MAX_LEN];
|
H A D | wifi_direct_ip_manager.cpp | 52 char ip[IP_STR_MAX_LEN] {}; in ApplyIpv6() 62 char result[IP_STR_MAX_LEN] {}; in ApplyIpv6()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_net_builder_test.cpp | 35 constexpr char IP[IP_STR_MAX_LEN] = "127.0.0.1"; 93 memcpy_s(target.info.ip.ip, IP_STR_MAX_LEN, IP, strlen(IP)); 187 memcpy_s(target.info.ip.ip, IP_STR_MAX_LEN, IP, strlen(IP)); 282 (void)strcpy_s(addr.info.ip.ip, IP_STR_MAX_LEN, IP); 307 (void)strcpy_s(addr.info.ip.ip, IP_STR_MAX_LEN, IP); 327 (void)strcpy_s(addr.info.ip.ip, IP_STR_MAX_LEN, IP); 346 (void)strcpy_s(addr.info.ip.ip, IP_STR_MAX_LEN, IP);
|
H A D | lnn_connection_fsm_test.cpp | 36 constexpr char IP[IP_STR_MAX_LEN] = "127.0.0.1"; 84 memcpy_s(target.info.ip.ip, IP_STR_MAX_LEN, IP, strlen(IP)); in SetUpTestCase() 89 (void)memcpy_s(target3.info.ip.ip, IP_STR_MAX_LEN, IP, strlen(IP)); in SetUpTestCase() 94 (void)memcpy_s(target4.info.ip.ip, IP_STR_MAX_LEN, IP, strlen(IP)); in SetUpTestCase() 420 EXPECT_EQ(EOK, memcpy_s(targetObj.info.ip.ip, IP_STR_MAX_LEN, IP, strlen(IP))); 810 EXPECT_EQ(EOK, memcpy_s(oldNodeInfo.connectInfo.deviceIp, IP_STR_MAX_LEN, IP, strlen(IP))); 811 EXPECT_EQ(EOK, memcpy_s(newNodeInfo.connectInfo.deviceIp, IP_STR_MAX_LEN, IP, strlen(IP))); 825 …EXPECT_EQ(EOK, memcpy_s(oldNodeInfo.connectInfo.deviceIp, IP_STR_MAX_LEN, PEERUDID, strlen(PEERUDI…
|
H A D | lnn_net_builder_mock_test.cpp | 182 (void)strcpy_s(connFsm->connInfo.addr.info.ip.ip, IP_STR_MAX_LEN, NODE1_IP); 984 (void)strcpy_s(connFsm->connInfo.addr.info.ip.ip, IP_STR_MAX_LEN, NODE1_IP); 992 (void)strcpy_s(fsmTest.connInfo.addr.info.ip.ip, IP_STR_MAX_LEN, NODE2_IP); 999 (void)strcpy_s(fsmTest.connInfo.addr.info.ip.ip, IP_STR_MAX_LEN, NODE1_IP); 1772 (void)strcpy_s(connFsm1->connInfo.addr.info.ip.ip, IP_STR_MAX_LEN, NODE2_IP);
|
H A D | lnn_connection_fsm_mock_test.cpp | 240 (void)memcpy_s(target.info.ip.ip, IP_STR_MAX_LEN, DEVICE_IP1, strlen(DEVICE_IP1));
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/utils/ |
H A D | lnn_bus_center_utils_test.cpp | 82 (void)strcpy_s(addr1.info.ip.ip, IP_STR_MAX_LEN, NODE1_IP); 90 (void)strcpy_s(addr2.info.ip.ip, IP_STR_MAX_LEN, NODE2_IP); 138 (void)strcpy_s(addr.info.ip.ip, IP_STR_MAX_LEN, NODE1_IP); 167 (void)strcpy_s(option.socketOption.addr, IP_STR_MAX_LEN, NODE1_IP); 228 (void)strcpy_s(addr.info.ip.ip, IP_STR_MAX_LEN, NODE1_IP); 256 (void)strcpy_s(connInfo.info.ipInfo.ip, IP_STR_MAX_LEN, NODE1_IP);
|
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/data/ |
H A D | ipv4_info.cpp | 78 char ipStr[IP_STR_MAX_LEN] {}; in ToIpString() 79 const char *ret = inet_ntop(AF_INET, &ip, ipStr, IP_STR_MAX_LEN); in ToIpString()
|
H A D | inner_link.cpp | 355 if (strcpy_s(link.localIp, IP_STR_MAX_LEN, localIp.c_str()) != EOK) { in GenerateLink() 359 if (strcpy_s(link.remoteIp, IP_STR_MAX_LEN, remoteIp.c_str()) != EOK) { in GenerateLink()
|
/ohos5.0/foundation/communication/dsoftbus/tools/device_info/ |
H A D | get_device_info.c | 54 unsigned char ipAddr[IP_STR_MAX_LEN] = {0}; in PrintNodeProperty() 56 ipAddr, IP_STR_MAX_LEN) != 0) { in PrintNodeProperty()
|
/ohos5.0/foundation/communication/dsoftbus/interfaces/kits/common/ |
H A D | softbus_common.h | 113 #define IP_STR_MAX_LEN 46 macro 297 char ip[IP_STR_MAX_LEN];
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/utils/src/ |
H A D | lnn_connection_addr_utils.c | 53 return (strncmp(addr1->info.ip.ip, addr2->info.ip.ip, IP_STR_MAX_LEN) == 0) && in LnnIsSameConnectionAddr() 275 if (strnlen(addr->info.ip.ip, IP_STR_MAX_LEN) == 0 || in LnnIsConnectionAddrInvalid() 276 strnlen(addr->info.ip.ip, IP_STR_MAX_LEN) == IP_STR_MAX_LEN) { in LnnIsConnectionAddrInvalid()
|
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/interface/include/form/ |
H A D | lnn_event_form.h | 216 const char localIp[IP_STR_MAX_LEN]; // LOCAL_IP 222 const char peerIp[IP_STR_MAX_LEN]; // PEER_IP
|
/ohos5.0/foundation/distributedhardware/device_manager/services/service/src/pinholder/ |
H A D | pin_holder_session.cpp | 140 if (!targetId.wifiIp.empty() && targetId.wifiIp.length() <= IP_STR_MAX_LEN) { in GetAddrByTargetId() 142 …if (memcpy_s(addr.info.ip.ip, IP_STR_MAX_LEN, targetId.wifiIp.c_str(), targetId.wifiIp.length()) !… in GetAddrByTargetId()
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/joinlnn_fuzzer/ |
H A D | joinlnn_fuzzer.cpp | 42 memcpy_s(addr.info.ip.ip, IP_STR_MAX_LEN, IP, strlen(IP)); in GenRandAddr()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/ |
H A D | lnn_net_ledger.c | 568 char ipAddr[IP_STR_MAX_LEN] = {0}; in SoftbusDumpPrintIp() 569 char newIpAddr[IP_STR_MAX_LEN] = {0}; in SoftbusDumpPrintIp() 571 …if (LnnGetNodeKeyInfo(nodeInfo->networkId, key, (uint8_t *)ipAddr, IP_STR_MAX_LEN) != SOFTBUS_OK) { in SoftbusDumpPrintIp() 575 DataMasking((char *)ipAddr, IP_STR_MAX_LEN, IP_DELIMITER, newIpAddr); in SoftbusDumpPrintIp()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/unittest/ |
H A D | net_builder_test.cpp | 119 EXPECT_TRUE(strncpy_s(bleAddr.info.ip.ip, IP_STR_MAX_LEN, WLAN_IP, strlen(WLAN_IP)) == EOK);
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/bus_center/unittest/ |
H A D | bus_center_sdk_test.cpp | 299 char ipAddr[IP_STR_MAX_LEN] = {0}; 315 (uint8_t *)ipAddr, IP_STR_MAX_LEN) == SOFTBUS_OK); 328 (uint8_t *)ipAddr, IP_STR_MAX_LEN) == SOFTBUS_OK);
|
H A D | client_bus_center_manager_test.cpp | 98 (void)strcpy_s(target1.info.ip.ip, IP_STR_MAX_LEN, NODE1_IP);
|
/ohos5.0/foundation/distributedhardware/device_manager/test/softbusunittest/ |
H A D | UTTest_softbus_connector.cpp | 427 (void)strncpy_s(deviceInfo->addr[0].info.ip.ip, IP_STR_MAX_LEN, ethIp, strlen(ethIp)); 450 (void)strncpy_s(deviceInfo->addr[0].info.ip.ip, IP_STR_MAX_LEN, wlanIp, strlen(wlanIp)); 473 (void)strncpy_s(deviceInfo->addr[0].info.br.brMac, IP_STR_MAX_LEN, brMac, strlen(brMac)); 495 (void)strncpy_s(deviceInfo->addr[0].info.ble.bleMac, IP_STR_MAX_LEN, bleMac, strlen(bleMac));
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/disc_mgr/src/ |
H A D | lnn_coap_discovery_impl.c | 63 if (strcpy_s(addr->info.ip.ip, IP_STR_MAX_LEN, device->addr[0].info.ip.ip) != EOK) { in GetConnectDeviceInfo()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/ |
H A D | lnn_heartbeat_utils.c | 460 char ipAddr[IP_STR_MAX_LEN] = {0}; in LnnDumpPrintIp() 461 if (LnnGetRemoteStrInfo(networkId, STRING_KEY_WLAN_IP, ipAddr, IP_STR_MAX_LEN) != SOFTBUS_OK) { in LnnDumpPrintIp()
|
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/session/src/ |
H A D | client_trans_session_service.c | 316 if (GetJsonObjectStringItem(obj, "ETH_IP", addrInfo->info.ip.ip, IP_STR_MAX_LEN) && in ConvertAddrStr() 319 if (IsValidString(addrInfo->info.ip.ip, IP_STR_MAX_LEN) && addrInfo->info.ip.port > 0) { in ConvertAddrStr() 325 if (GetJsonObjectStringItem(obj, "WIFI_IP", addrInfo->info.ip.ip, IP_STR_MAX_LEN) && in ConvertAddrStr() 328 if (IsValidString(addrInfo->info.ip.ip, IP_STR_MAX_LEN) && addrInfo->info.ip.port > 0) { in ConvertAddrStr()
|
/ohos5.0/foundation/communication/dsoftbus/ |
H A D | README_zh.md | 146 char ip[IP_STR_MAX_LEN];
|
H A D | README.md | 140 char ip[IP_STR_MAX_LEN];
|