/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | iptables_wrapper.cpp | 62 int32_t IptablesWrapper::RunCommand(const IpType &ipType, const std::string &command) in RunCommand() argument 70 if (isIptablesSystemAccess_ && (ipType == IPTYPE_IPV4 || ipType == IPTYPE_IPV4V6)) { in RunCommand() 80 if (isIp6tablesSystemAccess_ && (ipType == IPTYPE_IPV6 || ipType == IPTYPE_IPV4V6)) { in RunCommand() 93 std::string IptablesWrapper::RunCommandForRes(const IpType &ipType, const std::string &command) in RunCommandForRes() argument 95 …NETNATIVE_LOG_D("IptablesWrapper::RunCommandForRes, ipType:%{public}d, command:%{public}s", ipType, in RunCommandForRes() 102 if (ipType == IPTYPE_IPV4 || ipType == IPTYPE_IPV4V6) { in RunCommandForRes() 113 if (ipType == IPTYPE_IPV6 || ipType == IPTYPE_IPV4V6) { in RunCommandForRes() 127 int32_t IptablesWrapper::RunMutipleCommands(const IpType &ipType, const std::vector<std::string> &c… in RunMutipleCommands() argument 129 NETNATIVE_LOG_D("IptablesWrapper::RunMutipleCommands, ipType:%{public}d", ipType); in RunMutipleCommands() 136 if (isIptablesSystemAccess_ && (ipType == IPTYPE_IPV4 || ipType == IPTYPE_IPV4V6)) { in RunMutipleCommands() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/ |
H A D | if_config_test.cpp | 65 int ipType = static_cast<int>(IpType::IPTYPE_IPV4); variable 66 IfConfig::GetInstance().AddIpAddr(ifName, ipAddr, mask, ipType); 80 int ipType = static_cast<int>(IpType::IPTYPE_IPV6); variable 81 IfConfig::GetInstance().AddIpAddr(ifName, ipAddr, mask, ipType); 95 int ipType = static_cast<int>(IpType::IPTYPE_IPV4); variable 96 IfConfig::GetInstance().AddIpAddr(ifName, ipAddr, mask, ipType); 144 int ipType = static_cast<int>(IpType::IPTYPE_IPV6); variable 145 IfConfig::GetInstance().FlushIpAddr(ifName, ipType);
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/ |
H A D | base_address.cpp | 41 std::string ipType; in Dump() local 44 ipType = "IPv4"; in Dump() 48 ipType = "IPv6"; in Dump() 52 ipType = "NONE"; in Dump() 55 LOGI("TYPE: [%{public}s] address [%s/%zu]", ipType.c_str(), ipAddress_.c_str(), prefixLength_); in Dump()
|
H A D | if_config.h | 41 void FlushIpAddr(const std::string &ifName, const int &ipType); 43 …(const std::string &ifName, const std::string &ipAddr, const std::string &mask, const int &ipType); 60 int SetIfDnsAndRoute(const DhcpResult *dhcpInfo, int ipType, int instId = 0); 65 const std::string &gateWay, const int &ipType);
|
H A D | if_config.cpp | 119 void IfConfig::FlushIpAddr(const std::string& ifName, const int& ipType) in FlushIpAddr() argument 123 if (ipType != static_cast<int>(IpType::IPTYPE_IPV4)) { in FlushIpAddr() 159 … const std::string &ifName, const std::string &ipAddr, const std::string &mask, const int &ipType) in AddIpAddr() argument 166 if (ipType == static_cast<int>(IpType::IPTYPE_IPV4)) { in AddIpAddr() 305 int IfConfig::SetIfDnsAndRoute(const DhcpResult *dhcpResult, int ipType, int instId) in SetIfDnsAndRoute() argument 316 dhcpResult->strOptRouter1, ipType); in SetIfDnsAndRoute() 349 const std::string &gateWay, const int &ipType) in AddIfRoute() argument 351 if (ipType == static_cast<int>(IpType::IPTYPE_IPV4)) { in AddIfRoute()
|
/ohos5.0/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/network/rule/ |
H A D | firewall_chain_rule_test.cpp | 122 std::string ipType = "-s"; variable 123 EXPECT_EQ(FirewallChainRule::IpToParameter(ip, ipType), parameter); 127 ipType = "-s"; 128 EXPECT_EQ(FirewallChainRule::IpToParameter(ip, ipType), parameter); 132 ipType = "-s"; 133 EXPECT_EQ(FirewallChainRule::IpToParameter(ip, ipType), parameter); 137 ipType = "-d"; 138 EXPECT_EQ(FirewallChainRule::IpToParameter(ip, ipType), parameter);
|
/ohos5.0/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/ |
H A D | iptables_wrapper_test.cpp | 65 IpType ipType = IpType::IPTYPE_IPV4; variable 67 auto ret = wrapper->RunCommand(ipType, comdLine); 74 IpType ipType = IpType::IPTYPE_IPV4; variable 76 auto ret = wrapper->RunCommandForRes(ipType, comdLine);
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/ |
H A D | iptables_wrapper.h | 55 int32_t RunCommand(const IpType &ipType, const std::string &command); 64 std::string RunCommandForRes(const IpType &ipType, const std::string &command); 73 int32_t RunMutipleCommands(const IpType &ipType, const std::vector<std::string> &commands);
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/Mock/ |
H A D | mock_if_config.h | 34 virtual void FlushIpAddr(const std::string &ifName, const int &ipType) = 0; 44 MOCK_METHOD2(FlushIpAddr, void(const std::string &ifName, const int &ipType));
|
/ohos5.0/base/customization/enterprise_device_management/services/edm_plugin/src/network/rule/ |
H A D | firewall_chain_rule.cpp | 99 std::string FirewallChainRule::IpToParameter(const std::string &ip, const std::string &ipType) in IpToParameter() argument 108 parameterString << SPACE_OPTION << ipType << SPACE_OPTION << ip; in IpToParameter() 110 if (ipType == "-s") { in IpToParameter()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/brightness/ |
H A D | brightness_efilter.cpp | 83 IPType ipType = context->ipType_; in Render() local 84 auto it = brightnessFilterInfo_.find(ipType); in Render() 86 "ipType=%{public}d is not support! filter=%{public}s", ipType, name_.c_str()); in Render()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/contrast/ |
H A D | contrast_efilter.cpp | 82 IPType ipType = context->ipType_; in Render() local 83 auto it = contrastFilterInfo_.find(ipType); in Render() 85 "ipType=%{public}d is not support! filter=%{public}s", ipType, name_.c_str()); in Render()
|
/ohos5.0/base/telephony/cellular_data/test/ |
H A D | cellular_data_client_test.cpp | 119 std::string ipType; variable 120 int32_t result = CellularDataClient::GetInstance().GetDataConnIpType(0, ipType);
|
H A D | cellular_data_service_test.cpp | 94 std::string ipType; variable 95 ASSERT_EQ(TELEPHONY_ERR_SUCCESS, service->GetDataConnIpType(DEFAULT_SIM_SLOT_ID, ipType));
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/precompiled_macro/ |
H A D | sta_state_machine_test1.cpp | 324 int ipType = 0; in DealDhcpResultTest() local 327 pStaStateMachine->pDhcpResultNotify->DealDhcpResult(ipType); in DealDhcpResultTest() 332 int ipType = 1; in TryToCloseDhcpClientTest() local 335 pStaStateMachine->pDhcpResultNotify->TryToCloseDhcpClient(ipType); in TryToCloseDhcpClientTest() 340 int ipType = 2; in TryToCloseDhcpClientTest1() local 343 pStaStateMachine->pDhcpResultNotify->TryToCloseDhcpClient(ipType); in TryToCloseDhcpClientTest1()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/capi/ |
H A D | native_common_utils.cpp | 154 void SwitchToOHBufferType(const IPType &ipType, ImageEffect_BufferType &ohBufferType) in SwitchToOHBufferType() argument 156 auto it = IPTYPE_TABLE.find(ipType); in SwitchToOHBufferType() 172 for (auto ipType : format.second) { in SwitchToOHEffectInfo() local 174 SwitchToOHBufferType(ipType, bufferType); in SwitchToOHEffectInfo()
|
/ohos5.0/foundation/multimedia/image_effect/test/unittest/ |
H A D | native_image_effect_unittest.cpp | 1230 int32_t ipType = 2; variable 1233 runningType.dataValue.int32Value = ipType; 1284 int32_t ipType = 2; variable 1287 runningType.dataValue.int32Value = ipType; 1338 int32_t ipType = 1; variable 1341 runningType.dataValue.int32Value = ipType; 1383 int32_t ipType = 1; variable 1386 runningType.dataValue.int32Value = ipType; 1426 int32_t ipType = 2; variable 1512 int32_t ipType = 2; variable [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/frameworks/native/c_adapter/wificdevice_fuzzer/ |
H A D | wificdevice_fuzzer.cpp | 94 config.ipType = static_cast<IpType>(static_cast<int>(data[index++]) % TWO); in AddDeviceConfigTest() 176 result.ipType = static_cast<IpType>(static_cast<int>(data[index++]) % UNKNOWN); in GetDeviceConfigsTest() 206 config.ipType = static_cast<IpType>(static_cast<int>(data[index++]) % UNKNOWN); in ConnectToDeviceTest()
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_testapp/entry/src/main/ets/pages/subManualApiTest/ |
H A D | wifiManagerInterfaceTest.ets | 45 ipType: wifiManager.IpType, 65 ipType : 1 , 295 …TextInput({ text : this.wifiDeviceConfigManager?.ipType?.toString() ?? '' , placeholder : "1" }) /… 300 this.wifiDeviceConfigManager!.ipType = Number(strInput); 437 ipType : 1 ,
|
/ohos5.0/base/telephony/cellular_data/services/src/ |
H A D | cellular_data_service_stub.cpp | 334 std::string ipType; in OnGetDataConnIpType() local 335 int32_t result = GetDataConnIpType(slotId, ipType); in OnGetDataConnIpType() 340 if (!reply.WriteString(ipType)) { in OnGetDataConnIpType()
|
/ohos5.0/base/customization/enterprise_device_management/interfaces/kits/wifi_manager/src/ |
H A D | wifi_manager_addon.cpp | 351 int32_t ipType = static_cast<int32_t>(IpType::UNKNOWN); in JsObjToDeviceConfig() local 361 !JsObjectToInt(env, object, "ipType", false, ipType) || in JsObjToDeviceConfig() 362 !ProcessIpType(ipType, env, object, config.wifiIpConfig)) { in JsObjToDeviceConfig() 424 bool WifiManagerAddon::ProcessIpType(int32_t ipType, napi_env env, napi_value object, Wifi::WifiIpC… in ProcessIpType() argument 426 switch (ipType) { in ProcessIpType() 437 if (ipType == static_cast<int32_t>(IpType::STATIC) && !ConfigStaticIp(env, object, ipConfig)) { in ProcessIpType()
|
/ohos5.0/base/customization/enterprise_device_management/services/edm_plugin/include/network/rule/ |
H A D | firewall_chain_rule.h | 35 static std::string IpToParameter(const std::string &ip, const std::string &ipType);
|
/ohos5.0/foundation/communication/wifi_lite/interfaces/wifiservice/ |
H A D | wifi_device_config.h | 175 IpType ipType; member
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/effect/manager/memory_manager/ |
H A D | effect_memory_manager.cpp | 38 void EffectMemoryManager::SetIPType(IPType ipType) in SetIPType() argument 40 runningIPType_ = ipType; in SetIPType()
|
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/ |
H A D | wifi_c_device.cpp | 183 if (config->ipType == DHCP) { in ConvertDeviceConfigFromC() 185 } else if (config->ipType == STATIC_IP) { in ConvertDeviceConfigFromC() 216 result->ipType = DHCP; in ConvertDeviceConfigFromCpp() 218 result->ipType = STATIC_IP; in ConvertDeviceConfigFromCpp() 221 result->ipType = UNKNOWN; in ConvertDeviceConfigFromCpp()
|