Home
last modified time | relevance | path

Searched refs:ipType (Results 1 - 25 of 42) sorted by relevance

12

/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Diptables_wrapper.cpp64 int32_t IptablesWrapper::RunCommand(const IpType &ipType, const std::string &command) in RunCommand() argument
66 NETNATIVE_LOGI("IptablesWrapper::RunCommand, ipType:%{public}d", ipType); in RunCommand()
72 if (isIptablesSystemAccess_ && (ipType == IPTYPE_IPV4 || ipType == IPTYPE_IPV4V6)) { in RunCommand()
82 if (isIp6tablesSystemAccess_ && (ipType == IPTYPE_IPV6 || ipType == IPTYPE_IPV4V6)) { in RunCommand()
95 std::string IptablesWrapper::RunCommandForRes(const IpType &ipType, const std::string &command) in RunCommandForRes() argument
97 NETNATIVE_LOGI("IptablesWrapper::RunCommandForRes, ipType:%{public}d", ipType); in RunCommandForRes()
128 RunMutipleCommands(const IpType &ipType, const std::vector<std::string> &commands) RunMutipleCommands() argument
[all...]
/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 void AddIpAddr(const std::string &ifName, const std::string &ipAddr, const std::string &mask, const int &ipType);
57 * @param ipType - ip type[in]
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()
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
307 LOGD("ipType=%d, ip=%s, gateway=%s, subnet=%s, strDns1=%s, strDns2=%s", in SetIfDnsAndRoute()
316 dhcpResult->strOptRouter1, ipType); in SetIfDnsAndRoute() local
349 const std::string &gateWay, const int &ipType) in AddIfRoute()
351 if (ipType == static_cast<int>(IpType::IPTYPE_IPV4)) { in AddIfRoute()
158 AddIpAddr( const std::string &ifName, const std::string &ipAddr, const std::string &mask, const int &ipType) AddIpAddr() argument
348 AddIfRoute(const std::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay, const int &ipType) AddIfRoute() argument
/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); in HWTEST_F() local
66 IfConfig::GetInstance().AddIpAddr(ifName, ipAddr, mask, ipType); in HWTEST_F()
80 int ipType = static_cast<int>(IpType::IPTYPE_IPV6); in HWTEST_F() local
81 IfConfig::GetInstance().AddIpAddr(ifName, ipAddr, mask, ipType); in HWTEST_F()
95 int ipType = static_cast<int>(IpType::IPTYPE_IPV4); in HWTEST_F() local
96 IfConfig::GetInstance().AddIpAddr(ifName, ipAddr, mask, ipType); in HWTEST_F()
136 * @tc.desc: test with ipType is IPTYPE_IPV6
144 int ipType = static_cast<int>(IpType::IPTYPE_IPV6); in HWTEST_F() local
145 IfConfig::GetInstance().FlushIpAddr(ifName, ipType); in HWTEST_F()
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/
H A Diptables_wrapper_test.cpp65 IpType ipType = IpType::IPTYPE_IPV4; in HWTEST_F() local
67 auto ret = wrapper->RunCommand(ipType, comdLine); in HWTEST_F()
74 IpType ipType = IpType::IPTYPE_IPV4; in HWTEST_F() local
76 auto ret = wrapper->RunCommandForRes(ipType, comdLine); in HWTEST_F()
H A Dnetsys_native_service_test.cpp599 IptablesType ipType = IptablesType::IPTYPE_IPV4; in HWTEST_F() local
600 auto ret = instance_->SetIptablesCommandForRes(iptableCmd, iptableOutput, ipType); in HWTEST_F()
608 IptablesType ipType = IptablesType::IPTYPE_IPV4; in HWTEST_F() local
609 auto ret = instance_->SetIptablesCommandForRes(iptableCmd, iptableOutput, ipType); in HWTEST_F()
623 IptablesType ipType = IptablesType::IPTYPE_IPV4; in HWTEST_F() local
625 auto ret = instance_->SetIptablesCommandForRes(iptableCmd, iptableOutput, ipType); in HWTEST_F()
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A Diptables_wrapper.h51 * @param ipType ipv4 or ipv6
55 int32_t RunCommand(const IpType &ipType, const std::string &command);
60 * @param ipType ipv4 or ipv6.
64 std::string RunCommandForRes(const IpType &ipType, const std::string &command);
69 * @param ipType ipv4 or ipv6.
73 int32_t RunMutipleCommands(const IpType &ipType, const std::vector<std::string> &commands);
/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));
/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()
/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()
/foundation/communication/wifi_lite/interfaces/wifiservice/
H A Dwifi_device_config.h175 IpType ipType; member
/foundation/communication/wifi/wifi/test/wifi_standard/precompiled_macro/
H A Dsta_state_machine_test1.cpp328 int ipType = 0; in DealDhcpResultTest() local
331 pStaStateMachine->pDhcpResultNotify->DealDhcpResult(ipType); in DealDhcpResultTest()
337 int ipType = 1; in TryToCloseDhcpClientTest() local
340 pStaStateMachine->pDhcpResultNotify->TryToCloseDhcpClient(ipType); in TryToCloseDhcpClientTest()
346 int ipType = 2; in TryToCloseDhcpClientTest1() local
349 pStaStateMachine->pDhcpResultNotify->TryToCloseDhcpClient(ipType); in TryToCloseDhcpClientTest1()
/foundation/multimedia/image_effect/interfaces/inner_api/native/memory/
H A Deffect_memory_manager.h47 IMAGE_EFFECT_EXPORT void SetIPType(IPType ipType);
/foundation/communication/wifi/wifi/interfaces/kits/c/
H A Dwifi_device_config.h217 IpType ipType; member
/foundation/multimedia/image_effect/test/unittest/
H A Dnative_image_effect_unittest.cpp1232 int32_t ipType = 2; in HWTEST_F() local
1235 runningType.dataValue.int32Value = ipType; in HWTEST_F()
1286 int32_t ipType = 2; in HWTEST_F() local
1289 runningType.dataValue.int32Value = ipType; in HWTEST_F()
1340 int32_t ipType = 1; in HWTEST_F() local
1343 runningType.dataValue.int32Value = ipType; in HWTEST_F()
1385 int32_t ipType = 1; in HWTEST_F() local
1388 runningType.dataValue.int32Value = ipType; in HWTEST_F()
1428 int32_t ipType = 2; in HWTEST_F() local
1431 runningType.dataValue.int32Value = ipType; in HWTEST_F()
1514 int32_t ipType = 2; HWTEST_F() local
1562 int32_t ipType = 1; HWTEST_F() local
1612 int32_t ipType = 2; HWTEST_F() local
[all...]
H A DTestUtils.cpp399 std::vector<IPType> ipType; in HWTEST_F() local
400 ipType.emplace_back(IPType::DEFAULT); in HWTEST_F()
401 effectInfo.formats_.emplace(IEffectFormat::DEFAULT, ipType); in HWTEST_F()
/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()
/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()
174 SwitchToOHBufferType(ipType, bufferType); in SwitchToOHEffectInfo()
/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()
/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()
/foundation/multimedia/image_effect/interfaces/inner_api/native/efilter/
H A Defilter.h80 ErrorCode CalculateEFilterIPType(IEffectFormat &formatType, IPType &ipType);
/foundation/multimedia/image_effect/frameworks/native/efilter/base/
H A Defilter.cpp350 ErrorCode EFilter::CalculateEFilterIPType(IEffectFormat &formatType, IPType &ipType) in CalculateEFilterIPType() argument
359 ipType = IPType::CPU; in CalculateEFilterIPType()
361 ipType = IPType::GPU; in CalculateEFilterIPType()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta/
H A Dsta_state_machine.h393 void DealDhcpResult(int ipType);
484 void OnDhcpResultNotifyEvent(DhcpReturnCode result, int ipType = -1);
/foundation/communication/netmanager_base/services/netsyscontroller/src/
H A Dnetsys_controller.cpp1170 NetsysNative::IptablesType ipType) in SetIptablesCommandForRes()
1182 NETMGR_LOG_I("SetIptablesCommandForRes, iptables is %{public}d.", ipType); in SetIptablesCommandForRes()
1183 return netsysService_->SetIptablesCommandForRes(cmd, respond, ipType); in SetIptablesCommandForRes()
1169 SetIptablesCommandForRes(const std::string &cmd, std::string &respond, NetsysNative::IptablesType ipType) SetIptablesCommandForRes() argument

Completed in 18 milliseconds

12