Home
last modified time | relevance | path

Searched refs:ipAddr (Results 51 - 75 of 170) sorted by relevance

1234567

/foundation/communication/wifi/wifi/test/fuzztest/frameworks/native/c_adapter/wifichid2d_fuzzer/
H A Dwifichid2d_fuzzer.cpp48 unsigned int ipAddr[IPLEN] = {0}; in Hid2dRequestGcIpTest() local
55 ipAddr[i] = static_cast<int>(data[i]); in Hid2dRequestGcIpTest()
58 (void)Hid2dRequestGcIp(gcMac, ipAddr); in Hid2dRequestGcIpTest()
/foundation/communication/netmanager_base/test/fuzztest/netconnclient_fuzzer/
H A Dnet_conn_client_fuzzer.cpp1069 std::string ipAddr = NetConnGetString(STR_LEN); in AddInterfaceAddressFuzzTest() local
1077 dataParcel.WriteString(ipAddr); in AddInterfaceAddressFuzzTest()
1087 dataParcelNoIfName.WriteString(ipAddr); in AddInterfaceAddressFuzzTest()
1108 dataParcelNoPrefix.WriteString(ipAddr); in AddInterfaceAddressFuzzTest()
1117 std::string ipAddr = NetConnGetString(STR_LEN); in DelInterfaceAddressFuzzTest() local
1125 dataParcel.WriteString(ipAddr); in DelInterfaceAddressFuzzTest()
1135 dataParcelNoIfName.WriteString(ipAddr); in DelInterfaceAddressFuzzTest()
1156 dataParcelNoPrefix.WriteString(ipAddr); in DelInterfaceAddressFuzzTest()
1167 std::string ipAddr = NetConnGetString(STR_LEN); in StaticArpProcess() local
1170 dataParcel.WriteString(ipAddr); in StaticArpProcess()
1193 std::string ipAddr = NetConnGetString(STR_LEN); StaticArpProcessNoMacAddr() local
1205 std::string ipAddr = NetConnGetString(STR_LEN); StaticArpProcessNoIfName() local
1437 std::string ipAddr = NetConnGetString(STR_LEN); CloseSocketsUidTest() local
[all...]
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/
H A Dethernet_configuration_test.cpp133 dhcpResult.ipAddr = "test"; in HWTEST_F()
233 dhcpResult.ipAddr = "test1"; in HWTEST_F()
252 dhcpResult.ipAddr = "test1"; in HWTEST_F()
265 dhcpResult.ipAddr = "test1"; in HWTEST_F()
278 dhcpResult.ipAddr = "test1"; in HWTEST_F()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
H A Dap_started_state.cpp352 staInfo.ipAddr = msg->GetStringFromMessage(); in ProcessCmdAddBlockList()
354 staInfo.deviceName.c_str(), MacAnonymize(staInfo.bssid).c_str(), IpAnonymize(staInfo.ipAddr).c_str()); in ProcessCmdAddBlockList()
364 staInfo.ipAddr = msg->GetStringFromMessage(); in ProcessCmdDelBlockList()
366 MacAnonymize(staInfo.bssid).c_str(), IpAnonymize(staInfo.ipAddr).c_str()); in ProcessCmdDelBlockList()
382 staInfo.ipAddr = msg->GetStringFromMessage(); in ProcessCmdDisconnectStation()
H A Dap_service.cpp130 msg->AddStringMessageBody(stationInfo.ipAddr); in AddBlockList()
145 msg->AddStringMessageBody(stationInfo.ipAddr); in DelBlockList()
160 msg->AddStringMessageBody(stationInfo.ipAddr); in DisconnetStation()
185 iter->ipAddr = itMap->second.ipAddr; in GetStationList()
H A Dap_monitor.cpp49 info.ipAddr = GETTING_INFO; in OnStaJoinOrLeave()
56 IpAnonymize(info.ipAddr).c_str()); in OnStaJoinOrLeave()
/foundation/communication/netmanager_ext/test/ethernetmanager/unittest/ethernet_manager_test/
H A Dethernet_configuration_test.cpp133 dhcpResult.ipAddr = "test"; in HWTEST_F()
233 dhcpResult.ipAddr = "test1"; in HWTEST_F()
252 dhcpResult.ipAddr = "test1"; in HWTEST_F()
265 dhcpResult.ipAddr = "test1"; in HWTEST_F()
278 dhcpResult.ipAddr = "test1"; in HWTEST_F()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/
H A Dwifi_p2p_service.cpp157 info.ipAddr = GETTING_INFO; in GetRptStationsList()
174 iter->ipAddr = itMap->second.ipAddr; in GetRptStationsList()
379 ErrCode WifiP2pService::Hid2dRequestGcIp(const std::string& gcMac, std::string& ipAddr) in Hid2dRequestGcIp() argument
389 ipAddr = IpPool::GetIp(gcMac); in Hid2dRequestGcIp()
/test/testfwk/developer_test/aw/cxx/distributed/
H A Ddistributed_major.cpp97 int DistributeTestEnvironment::AddClient(std::string ipAddr) in AddClient() argument
101 if (inet_pton(AF_INET, ipAddr.c_str(), &addr.sin_addr) == 1) { in AddClient()
104 dev.ipAddr = ipAddr; in AddClient()
119 std::string serverIp = clientList_[devNo].ipAddr; in ConnectAgent()
H A Ddistributed.h46 std::string ipAddr; member
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/
H A Darp_checker_test.cpp34 std::string ipAddr = "10.3.1"; in SetUp() local
37 pArpChecker->Start(ifname, hwAddr, ipAddr, gatewayAddr); in SetUp()
H A Dwifi_config_file_test.cpp194 tmp.ipAddr = "192.xxx.x.1"; in HWTEST_F()
199 tmp.ipAddr = "192.xxx.x.2"; in HWTEST_F()
210 EXPECT_TRUE(tmp.ipAddr == ldCfg.ipAddr); in HWTEST_F()
/foundation/communication/wifi/wifi/test/wifi_standard/native/
H A Dwifi_c_hid2d_test.cpp46 unsigned int ipAddr[IPV4_ARRAY_LEN]; in HWTEST_F() local
47 Hid2dRequestGcIp(gcMac, ipAddr); in HWTEST_F()
/foundation/communication/netmanager_ext/services/mdnsmanager/src/
H A Dnet_interface_callback.cpp58 in6_addr ipAddr; in OnInterfaceAddressUpdated() local
59 int32_t ret = inet_pton(AF_INET6, tmpAddr.c_str(), &ipAddr); in OnInterfaceAddressUpdated()
/foundation/communication/wifi/wifi/frameworks/native/src/
H A Dwifi_hotspot_callback_stub.cpp87 info.ipAddr = (readStr != nullptr) ? readStr : ""; in RemoteOnHotspotStaJoin()
103 info.ipAddr = (readStr != nullptr) ? readStr : ""; in RemoteOnHotspotStaLeave()
/foundation/communication/dhcp/test/unittest/services/utils/
H A Ddhcp_common_utils_test.cpp48 std::string ipAddr = "1.2.3.4"; in HWTEST_F() local
49 std::string ret = Ipv4Anonymize(ipAddr); in HWTEST_F()
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/
H A Dnet_conn_client.cpp779 int32_t NetConnClient::AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, in AddInterfaceAddress() argument
789 return proxy->AddInterfaceAddress(ifName, ipAddr, prefixLength); in AddInterfaceAddress()
792 int32_t NetConnClient::DelInterfaceAddress(const std::string &ifName, const std::string &ipAddr, in DelInterfaceAddress() argument
802 return proxy->DelInterfaceAddress(ifName, ipAddr, prefixLength); in DelInterfaceAddress()
805 int32_t NetConnClient::AddStaticArp(const std::string &ipAddr, const std::string &macAddr, const std::string &ifName) in AddStaticArp() argument
814 return proxy->AddStaticArp(ipAddr, macAddr, ifName); in AddStaticArp()
817 int32_t NetConnClient::DelStaticArp(const std::string &ipAddr, const std::string &macAddr, const std::string &ifName) in DelStaticArp() argument
826 return proxy->DelStaticArp(ipAddr, macAddr, ifName); in DelStaticArp()
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dnet_manager_native.cpp559 int32_t NetManagerNative::AddStaticArp(const std::string &ipAddr, const std::string &macAddr, in AddStaticArp() argument
567 return interfaceManager_->AddStaticArp(ipAddr, macAddr, ifName); in AddStaticArp()
570 int32_t NetManagerNative::DelStaticArp(const std::string &ipAddr, const std::string &macAddr, in DelStaticArp() argument
578 return interfaceManager_->DelStaticArp(ipAddr, macAddr, ifName); in DelStaticArp()
622 int32_t NetManagerNative::CloseSocketsUid(const std::string &ipAddr, uint32_t uid) in CloseSocketsUid() argument
624 return connManager_->CloseSocketsUid(ipAddr, uid); in CloseSocketsUid()
/foundation/communication/netmanager_base/services/netsyscontroller/include/
H A Dnetsys_native_client.h220 * @param ipAddr ip address
224 int32_t AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength);
230 * @param ipAddr ip address
234 int32_t DelInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength);
240 * @param ipAddr ip address
245 int32_t DelInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength,
845 int32_t AddStaticArp(const std::string &ipAddr, const std::string &macAddr,
847 int32_t DelStaticArp(const std::string &ipAddr, const std::string &macAddr,
978 int32_t CloseSocketsUid(const std::string &ipAddr, uint32_t uid);
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_lane_link.c1052 void LaneAddP2pAddress(const char *networkId, const char *ipAddr, uint16_t port) in LaneAddP2pAddress() argument
1054 if (networkId == NULL || ipAddr == NULL) { in LaneAddP2pAddress()
1074 if (strcpy_s(item->addr, MAX_SOCKET_ADDR_LEN, ipAddr) != EOK) { in LaneAddP2pAddress()
1091 if (strcpy_s(p2pAddrNode->addr, MAX_SOCKET_ADDR_LEN, ipAddr) != EOK) { in LaneAddP2pAddress()
1104 void LaneAddP2pAddressByIp(const char *ipAddr, uint16_t port) in LaneAddP2pAddressByIp() argument
1106 if (ipAddr == NULL) { in LaneAddP2pAddressByIp()
1118 if (strcmp(item->addr, ipAddr) == 0) { in LaneAddP2pAddressByIp()
1132 if (strcpy_s(p2pAddrNode->addr, MAX_SOCKET_ADDR_LEN, ipAddr) != EOK) { in LaneAddP2pAddressByIp()
1146 void LaneUpdateP2pAddressByIp(const char *ipAddr, const char *networkId) in LaneUpdateP2pAddressByIp() argument
1148 if (ipAddr in LaneUpdateP2pAddressByIp()
1170 LaneGetP2PReuseMac(const char *networkId, char *ipAddr, uint32_t maxLen, uint16_t *port) LaneGetP2PReuseMac() argument
1346 char ipAddr[MAX_SOCKET_ADDR_LEN]; LaneLinkOfP2pReuse() local
[all...]
/foundation/communication/netmanager_base/services/netsyscontroller/src/
H A Dnetsys_native_client.cpp473 int32_t NetsysNativeClient::AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, in AddInterfaceAddress() argument
476 NETMGR_LOG_D("Add address: ifName[%{public}s], ipAddr[%{public}s], prefixLength[%{public}d]", in AddInterfaceAddress()
477 ifName.c_str(), ToAnonymousIp(ipAddr).c_str(), prefixLength); in AddInterfaceAddress()
483 return proxy->AddInterfaceAddress(ifName, ipAddr, prefixLength); in AddInterfaceAddress()
486 int32_t NetsysNativeClient::DelInterfaceAddress(const std::string &ifName, const std::string &ipAddr, in DelInterfaceAddress() argument
489 NETMGR_LOG_D("Delete address: ifName[%{public}s], ipAddr[%{public}s], prefixLength[%{public}d]", in DelInterfaceAddress()
490 ifName.c_str(), ToAnonymousIp(ipAddr).c_str(), prefixLength); in DelInterfaceAddress()
496 return proxy->DelInterfaceAddress(ifName, ipAddr, prefixLength); in DelInterfaceAddress()
499 int32_t NetsysNativeClient::DelInterfaceAddress(const std::string &ifName, const std::string &ipAddr, in DelInterfaceAddress() argument
502 NETMGR_LOG_D("Delete address: ifName[%{public}s], ipAddr[ in DelInterfaceAddress()
1452 AddStaticArp(const std::string &ipAddr, const std::string &macAddr, const std::string &ifName) AddStaticArp() argument
1463 DelStaticArp(const std::string &ipAddr, const std::string &macAddr, const std::string &ifName) DelStaticArp() argument
1751 CloseSocketsUid(const std::string &ipAddr, uint32_t uid) CloseSocketsUid() argument
[all...]
H A Dmock_netsys_native_client.cpp186 int32_t MockNetsysNativeClient::AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, in AddInterfaceAddress() argument
189 NETMGR_LOG_I("Add address: ifName[%{public}s], ipAddr[%{public}s], prefixLength[%{public}d]", in AddInterfaceAddress()
190 ifName.c_str(), ToAnonymousIp(ipAddr).c_str(), prefixLength); in AddInterfaceAddress()
194 int32_t MockNetsysNativeClient::DelInterfaceAddress(const std::string &ifName, const std::string &ipAddr, in DelInterfaceAddress() argument
197 NETMGR_LOG_I("Delete address: ifName[%{public}s], ipAddr[%{public}s], prefixLength[%{public}d]", in DelInterfaceAddress()
198 ifName.c_str(), ToAnonymousIp(ipAddr).c_str(), prefixLength); in DelInterfaceAddress()
617 int32_t MockNetsysNativeClient::CloseSocketsUid(const std::string &ipAddr, uint32_t uid) in CloseSocketsUid() argument
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/
H A Dnetsys_native_client_test.cpp357 std::string ipAddr = "192.168.1.100"; in HWTEST_F() local
360 auto ret = nativeClient_.AddStaticArp(ipAddr, macAddr, ifName); in HWTEST_F()
363 ret = nativeClient_.DelStaticArp(ipAddr, macAddr, ifName); in HWTEST_F()
447 std::string ipAddr = ""; in HWTEST_F() local
449 int32_t ret = nativeClient_.CloseSocketsUid(ipAddr, uid); in HWTEST_F()
/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifiap_fuzzer/
H A Dwifiap_fuzzer.cpp135 staInfo.ipAddr = std::string(reinterpret_cast<const char*>(data), size); in BlockListAndStationFuzzTest()
217 stationInfo.ipAddr = std::string(reinterpret_cast<const char*>(data), size); in AddBlockListFuzzTest()
229 stationInfo.ipAddr = std::string(reinterpret_cast<const char*>(data), size); in DelBlockListFuzzTest()
241 stationInfo.ipAddr = std::string(reinterpret_cast<const char*>(data), size); in DisconnetStationFuzzTest()
/third_party/backends/backend/
H A Depsonds-net.c368 char ipAddr[AVAHI_ADDRESS_STR_MAX]; in epsonds_resolve_callback() local
379 avahi_address_snprint(ipAddr, sizeof(ipAddr), address); in epsonds_resolve_callback()
394 data->callBack(&text[4], ipAddr); in epsonds_resolve_callback()

Completed in 24 milliseconds

1234567