Home
last modified time | relevance | path

Searched refs:ipType (Results 1 – 25 of 93) sorted by relevance

1234

/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Diptables_wrapper.cpp62 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 Dif_config_test.cpp65 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 Dbase_address.cpp41 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 Dif_config.h41 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 Dif_config.cpp119 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 Dfirewall_chain_rule_test.cpp122 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 Diptables_wrapper_test.cpp65 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 Diptables_wrapper.h55 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 Dmock_if_config.h34 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 Dfirewall_chain_rule.cpp99 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 Dbrightness_efilter.cpp83 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 Dcontrast_efilter.cpp82 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 Dcellular_data_client_test.cpp119 std::string ipType; variable
120 int32_t result = CellularDataClient::GetInstance().GetDataConnIpType(0, ipType);
H A Dcellular_data_service_test.cpp94 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 Dsta_state_machine_test1.cpp324 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 Dnative_common_utils.cpp154 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 Dnative_image_effect_unittest.cpp1230 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 Dwificdevice_fuzzer.cpp94 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 DwifiManagerInterfaceTest.ets45 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 Dcellular_data_service_stub.cpp334 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 Dwifi_manager_addon.cpp351 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 Dfirewall_chain_rule.h35 static std::string IpToParameter(const std::string &ip, const std::string &ipType);
/ohos5.0/foundation/communication/wifi_lite/interfaces/wifiservice/
H A Dwifi_device_config.h175 IpType ipType; member
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/effect/manager/memory_manager/
H A Deffect_memory_manager.cpp38 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 Dwifi_c_device.cpp183 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()

1234