Home
last modified time | relevance | path

Searched refs:ConvertIpv4Address (Results 1 - 23 of 23) sorted by relevance

/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/
H A Dwifi_ip_tools_test.cpp28 EXPECT_TRUE(IpTools::ConvertIpv4Address(0) == ""); in HWTEST_F()
29 EXPECT_TRUE(IpTools::ConvertIpv4Address(0xc0a80001) == "192.168.0.1"); in HWTEST_F()
30 EXPECT_TRUE(IpTools::ConvertIpv4Address("") == 0); in HWTEST_F()
31 EXPECT_TRUE(IpTools::ConvertIpv4Address("192:168:0:1") == 0); in HWTEST_F()
32 EXPECT_TRUE(IpTools::ConvertIpv4Address("192.168:0.1") == 0); in HWTEST_F()
33 EXPECT_TRUE(IpTools::ConvertIpv4Address("289.168.0.1") == 0); in HWTEST_F()
34 EXPECT_TRUE(IpTools::ConvertIpv4Address("-1.168.0.1") == 0); in HWTEST_F()
35 EXPECT_TRUE(IpTools::ConvertIpv4Address("192.168.0.289") == 0); in HWTEST_F()
36 EXPECT_TRUE(IpTools::ConvertIpv4Address("192.168.0.-1") == 0); in HWTEST_F()
37 EXPECT_TRUE(IpTools::ConvertIpv4Address("192.16 in HWTEST_F()
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Dip_tools.h61 static std::string ConvertIpv4Address(unsigned int addressIpv4);
69 static unsigned int ConvertIpv4Address(const std::string &address);
H A Dip_tools.cpp21 std::string IpTools::ConvertIpv4Address(unsigned int addressIpv4) in ConvertIpv4Address() function in OHOS::Wifi::IpTools
36 unsigned int IpTools::ConvertIpv4Address(const std::string &address) in ConvertIpv4Address() function in OHOS::Wifi::IpTools
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/
H A Dwifi_net_agent.cpp138 unsigned int ipInt = IpTools::ConvertIpv4Address(ipAddress); in AddRoute()
140 unsigned int maskInt = IpTools::ConvertIpv4Address(mask); in AddRoute()
141 std::string strLocalRoute = IpTools::ConvertIpv4Address(ipInt & maskInt); in AddRoute()
285 static_cast<unsigned int>(IpTools::GetMaskLength(IpTools::ConvertIpv4Address(wifiIpInfo.netmask)));
289 netAddr->address_ = IpTools::ConvertIpv4Address(wifiIpInfo.ipAddress);
290 netAddr->netMask_ = IpTools::ConvertIpv4Address(wifiIpInfo.netmask);
328 dns->address_ = IpTools::ConvertIpv4Address(wifiIpInfo.primaryDns);
333 dns->address_ = IpTools::ConvertIpv4Address(wifiIpInfo.secondDns);
360 route->gateway_.address_ = IpTools::ConvertIpv4Address(wifiIpInfo.gateway);
382 static_cast<unsigned int>(IpTools::GetMaskLength(IpTools::ConvertIpv4Address(wifiIpInf
[all...]
/foundation/communication/netmanager_base/test/netmanagerutils/unittest/netmanager_base_common_test/
H A Dut_netmanager_base_common.cpp208 * @tc.desc: Test UtNetmanagerBaseCommon ConvertIpv4Address.
213 auto result = CommonUtils::ConvertIpv4Address(0); in HWTEST_F()
219 * @tc.desc: Test UtNetmanagerBaseCommon ConvertIpv4Address.
224 auto result = CommonUtils::ConvertIpv4Address(ADDREDD_LEN); in HWTEST_F()
230 * @tc.desc: Test UtNetmanagerBaseCommon ConvertIpv4Address.
235 auto result = CommonUtils::ConvertIpv4Address(TEST_IP); in HWTEST_F()
241 * @tc.desc: Test UtNetmanagerBaseCommon ConvertIpv4Address.
247 auto result = CommonUtils::ConvertIpv4Address(addr); in HWTEST_F()
253 * @tc.desc: Test UtNetmanagerBaseCommon ConvertIpv4Address.
259 auto result = CommonUtils::ConvertIpv4Address(add in HWTEST_F()
[all...]
/foundation/CastEngine/castengine_cast_plus_stream/src/utils/src/
H A Dutils.cpp126 std::string Utils::ConvertIpv4Address(unsigned int addressIpv4) in ConvertIpv4Address() function in OHOS::CastEngine::CastEngineService::Utils
150 std::string strIp = Utils::ConvertIpv4Address(ipInfo.ipAddress); in GetWifiIp()
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/utils/src/
H A Dutils.cpp126 std::string Utils::ConvertIpv4Address(unsigned int addressIpv4) in ConvertIpv4Address() function in OHOS::CastEngine::CastEngineService::Utils
150 std::string strIp = Utils::ConvertIpv4Address(ipInfo.ipAddress); in GetWifiIp()
/foundation/communication/netmanager_base/utils/common_utils/include/
H A Dnetmanager_base_common_utils.h58 std::string ConvertIpv4Address(uint32_t addressIpv4);
59 uint32_t ConvertIpv4Address(const std::string &address);
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_self_cure/
H A Dmulti_gateway.cpp57 std::string ipAddress = IpTools::ConvertIpv4Address(ipInfo.ipAddress); in GetGatewayAddr()
63 m_gwIpAddr = IpTools::ConvertIpv4Address(ipInfo.gateway); in GetGatewayAddr()
H A Dself_cure_state_machine.cpp1319 ipInfo.primaryDns = IpTools::ConvertIpv4Address(dnsServers[0]); in UpdateDnsServers()
1320 ipInfo.secondDns = IpTools::ConvertIpv4Address(dnsServers[1]); in UpdateDnsServers()
1332 std::string ipV4PrimaryDns = IpTools::ConvertIpv4Address(ipInfo.primaryDns); in SelfCureForDns()
1333 std::string ipV4SecondDns = IpTools::ConvertIpv4Address(ipInfo.secondDns); in SelfCureForDns()
1361 unConflictedIp = IpTools::ConvertIpv4Address(dhcpResults.ipAddress); in SelfCureForInvalidIp()
1400 std::string gateway = IpTools::ConvertIpv4Address(ipInfo.gateway); in GetRecordDhcpResults()
1438 std::string gatewayKey = IpTools::ConvertIpv4Address(dhcpResult.gateway); in SelfCureForStaticIp()
2334 std::string gateway = IpTools::ConvertIpv4Address(dhcpResults.gateway); in GetLegalIpConfiguration()
2335 std::string initialIpAddr = IpTools::ConvertIpv4Address(dhcpResults.ipAddress); in GetLegalIpConfiguration()
2348 dhcpResults.ipAddress = IpTools::ConvertIpv4Address(newIpAddres in GetLegalIpConfiguration()
[all...]
/foundation/CastEngine/castengine_cast_plus_stream/src/utils/include/
H A Dutils.h78 static std::string ConvertIpv4Address(unsigned int addressIpv4);
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/utils/include/
H A Dutils.h78 static std::string ConvertIpv4Address(unsigned int addressIpv4);
/foundation/communication/netmanager_ext/services/ethernetmanager/src/
H A Ddev_interface_state.cpp381 uint32_t ipInt = CommonUtils::ConvertIpv4Address(ipv4Addr); in GetIpv4Prefix()
382 uint32_t maskInt = CommonUtils::ConvertIpv4Address(maskAddr.address_); in GetIpv4Prefix()
383 return CommonUtils::ConvertIpv4Address(ipInt & maskInt); in GetIpv4Prefix()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta/
H A Dsta_state_machine.cpp3988 std::string ipAddress = IpTools::ConvertIpv4Address(ipInfo.ipAddress); in CanArpReachable()
3995 std::string gateway = IpTools::ConvertIpv4Address(ipInfo.gateway); in CanArpReachable()
4385 ipInfo.ipAddress = IpTools::ConvertIpv4Address(result->strOptClientId); in TryToSaveIpV4ResultExt()
4386 ipInfo.gateway = IpTools::ConvertIpv4Address(result->strOptRouter1); in TryToSaveIpV4ResultExt()
4387 ipInfo.netmask = IpTools::ConvertIpv4Address(result->strOptSubnet); in TryToSaveIpV4ResultExt()
4388 ipInfo.primaryDns = IpTools::ConvertIpv4Address(result->strOptDns1); in TryToSaveIpV4ResultExt()
4389 ipInfo.secondDns = IpTools::ConvertIpv4Address(result->strOptDns2); in TryToSaveIpV4ResultExt()
4390 ipInfo.serverIp = IpTools::ConvertIpv4Address(result->strOptServerId); in TryToSaveIpV4ResultExt()
4395 unsigned int ipv4Address = IpTools::ConvertIpv4Address(result->dnsList.dnsAddr[i]); in TryToSaveIpV4ResultExt()
4409 if (!((IpTools::ConvertIpv4Address(resul in TryToSaveIpV4Result()
[all...]
/foundation/communication/wifi/wifi/interfaces/inner_api/
H A Dwifi_msg.h310 return IpTools::ConvertIpv4Address(addressIpv4); in GetIpv4Address()
315 addressIpv4 = IpTools::ConvertIpv4Address(address); in SetIpv4Address()
/foundation/communication/netmanager_ext/services/vpnmanager/src/
H A Dnet_vpn_impl.cpp342 uint32_t ipAddrUint = CommonUtils::ConvertIpv4Address(route.destination_.address_); in AdjustRouteInfo()
344 route.destination_.address_ = CommonUtils::ConvertIpv4Address(subNetAddress); in AdjustRouteInfo()
/foundation/communication/netmanager_base/utils/common_utils/src/
H A Dnetmanager_base_common_utils.cpp201 std::string ConvertIpv4Address(uint32_t addressIpv4) in ConvertIpv4Address() function
213 uint32_t ConvertIpv4Address(const std::string &address) in ConvertIpv4Address() function
/foundation/communication/netmanager_ext/frameworks/js/napi/vpn/src/context/
H A Dsetup_context.cpp242 uint32_t ipAddrUint = CommonUtils::ConvertIpv4Address(iNetAddr.address_); in ParseAddress()
/foundation/communication/netmanager_ext/frameworks/js/napi/vpnext/src/context/
H A Dsetup_context_ext.cpp219 uint32_t ipAddrUint = CommonUtils::ConvertIpv4Address(iNetAddr.address_); in ParseAddress()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/
H A Dwifi_manager.cpp396 std::string ipAddrStr = IpTools::ConvertIpv4Address(ipInfo.ipAddress); in InstallPacketFilterProgram()
/foundation/communication/netmanager_ext/frameworks/js/napi/vpn/src/
H A Dvpn_config_utils.cpp302 uint32_t ipAddrUint = CommonUtils::ConvertIpv4Address(iNetAddr.address_); in ParseAddress()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/
H A Dsta_state_machine_test.cpp1410 ipInfo.ipAddress = IpTools::ConvertIpv4Address("192.168.0.2"); in DhcpResultNotifyOnSuccessTest()
1411 ipInfo.gateway = IpTools::ConvertIpv4Address("192.168.0.1"); in DhcpResultNotifyOnSuccessTest()
H A Dself_cure_state_machine_test.cpp801 dhcpResult.ipAddress = IpTools::ConvertIpv4Address("192.168.101.39"); in RequestUseStaticIpConfigTest()
802 dhcpResult.gateway = IpTools::ConvertIpv4Address("192.168.101.1"); in RequestUseStaticIpConfigTest()

Completed in 38 milliseconds