/foundation/communication/netmanager_base/frameworks/native/netmanagernative/ |
H A D | notify_callback_proxy.cpp | 22 bool WriteInterfaceStateData(MessageParcel &data, const std::string &ifName) in WriteInterfaceStateData() argument 29 if (!data.WriteString(ifName)) { in WriteInterfaceStateData() 35 bool WriteInterfaceAddressData(MessageParcel &data, const std::string &addr, const std::string &ifName, int flags, in WriteInterfaceAddressData() argument 47 if (!data.WriteString(ifName)) { in WriteInterfaceAddressData() 61 bool WriteLinkStateData(MessageParcel &data, const std::string &ifName, bool up) in WriteLinkStateData() argument 68 if (!data.WriteString(ifName)) { in WriteLinkStateData() 84 int32_t NotifyCallbackProxy::OnInterfaceAddressUpdated(const std::string &addr, const std::string &ifName, int flags, in OnInterfaceAddressUpdated() argument 89 if (!WriteInterfaceAddressData(data, addr, ifName, flags, scope)) { in OnInterfaceAddressUpdated() 111 int32_t NotifyCallbackProxy::OnInterfaceAddressRemoved(const std::string &addr, const std::string &ifName, int flags, in OnInterfaceAddressRemoved() argument 116 if (!WriteInterfaceAddressData(data, addr, ifName, flag in OnInterfaceAddressRemoved() 138 OnInterfaceAdded(const std::string &ifName) OnInterfaceAdded() argument 163 OnInterfaceRemoved(const std::string &ifName) OnInterfaceRemoved() argument 188 OnInterfaceChanged(const std::string &ifName, bool up) OnInterfaceChanged() argument 213 OnInterfaceLinkStateChanged(const std::string &ifName, bool up) OnInterfaceLinkStateChanged() argument 238 OnRouteChanged(bool updated, const std::string &route, const std::string &gateway, const std::string &ifName) OnRouteChanged() argument [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_wpa_proxy.c | 86 char ifName[BUFF_SIZE];
member 91 static bool FindifaceName(const char* ifName)
in FindifaceName() argument 94 if (ifName == NULL || strlen(ifName) == 0) {
in FindifaceName() 100 if (strncmp(current->ifName, ifName, strlen(ifName)) == 0) {
in FindifaceName() 110 static void AddIfaceName(const char* ifName)
in AddIfaceName() argument 113 if (ifName == NULL || strlen(ifName) in AddIfaceName() 150 RemoveIfaceName(const char* ifName) RemoveIfaceName() argument 357 HdiAddWpaIface(const char *ifName, const char *confName) HdiAddWpaIface() argument 386 HdiRemoveWpaIface(const char *ifName) HdiRemoveWpaIface() argument [all...] |
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/ |
H A D | notify_callback_stub_test.cpp | 51 std::string ifName = "test0"; in HWTEST_F() local 61 if (!data.WriteString(ifName)) { in HWTEST_F() 86 if (!dataOk.WriteString(ifName)) { in HWTEST_F() 103 std::string ifName = "test0"; in HWTEST_F() local 113 if (!data.WriteString(ifName)) { in HWTEST_F() 131 std::string ifName = "test0"; in HWTEST_F() local 136 if (!data.WriteString(ifName)) { in HWTEST_F() 148 std::string ifName = "test0"; in HWTEST_F() local 153 if (!data.WriteString(ifName)) { in HWTEST_F() 165 std::string ifName in HWTEST_F() local 186 std::string ifName = "test0"; HWTEST_F() local 210 std::string ifName = "test0"; HWTEST_F() local [all...] |
H A D | vpn_manager_test.cpp | 59 std::string ifName = ""; in HWTEST_F() local 61 result = VpnManager::GetInstance().SetVpnMtu(ifName, testNumber); in HWTEST_F() 65 result = VpnManager::GetInstance().SetVpnMtu(ifName, testNumber); in HWTEST_F() 69 result = VpnManager::GetInstance().SetVpnAddress(ifName, tunAddr, testNumber); in HWTEST_F() 102 std::string ifName; in HWTEST_F() local 104 auto ret = VpnManager::GetInstance().SetVpnAddress(ifName, tunAddr, 0); in HWTEST_F() 110 std::string ifName; in HWTEST_F() local 112 auto ret = VpnManager::GetInstance().SetVpnAddress(ifName, tunAddr, 0); in HWTEST_F()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
H A D | wifi_cmd_client.h | 41 int SendCmdToDriver(const std::string &ifName, int commandId, const std::string ¶m) const; 44 int SendCommandToDriverByInterfaceName(const std::string &ifName, const std::string &cmdParm) const; 45 int SetRxListen(const std::string &ifName, const std::string ¶m) const; 46 int Set2gSoftapMss(const std::string &ifName, const std::string ¶m) const; 47 int SetAxBlaList(const std::string &ifName, const std::string ¶m) const; 48 int AxSelfcure(const std::string &ifName, const std::string ¶m) const; 49 int SetBeBlaList(const std::string &ifName, const std::string ¶m) const;
|
/foundation/communication/dhcp/test/unittest/services/utils/ |
H A D | dhcp_arp_checker_test.cpp | 50 std::string ifName = "wlantest"; in HWTEST_F() local 56 EXPECT_FALSE(dhcpArpChecker.Start(ifName, ifaceMac, senderIp, ipAddr)); in HWTEST_F() 58 ifName = "wlan0"; in HWTEST_F() 59 dhcpArpChecker.Start(ifName, ifaceMac, senderIp, ipAddr); in HWTEST_F() 73 std::string ifName = ""; in HWTEST_F() local 76 EXPECT_TRUE(dhcpArpChecker.CreateSocket(ifName.c_str(), protocol) == -1); in HWTEST_F() 77 ifName = "wlantest"; in HWTEST_F() 78 EXPECT_TRUE(dhcpArpChecker.CreateSocket(ifName.c_str(), protocol) == -1); in HWTEST_F() 79 ifName = "wlan0"; in HWTEST_F() 81 EXPECT_TRUE(dhcpArpChecker.CreateSocket(ifName in HWTEST_F() 95 std::string ifName = "wlan0"; HWTEST_F() local [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | bandwidth_manager.cpp | 334 int32_t BandwidthManager::SetIfaceQuotaDetail(const std::string &ifName, int64_t bytes) in SetIfaceQuotaDetail() argument 337 std::string chainName = std::string(CHAIN_NAME_COSTLY_PTR) + ifName; in SetIfaceQuotaDetail() 342 if (ifaceQuotaBytes_.count(ifName) > 0) { in SetIfaceQuotaDetail() 344 command = "-t filter -D " + chainName + " -m quota2 ! --quota " + std::to_string(ifaceQuotaBytes_[ifName]) + in SetIfaceQuotaDetail() 345 " --name " + ifName + " --jump REJECT"; in SetIfaceQuotaDetail() 348 command = "-t filter -A " + chainName + " -m quota2 ! --quota " + strMaxBytes + " --name " + ifName + in SetIfaceQuotaDetail() 353 ifaceQuotaBytes_[ifName] = bytes; in SetIfaceQuotaDetail() 357 ifaceQuotaBytes_[ifName] = bytes; in SetIfaceQuotaDetail() 361 command = "-t filter -A " + fChainName + " -o " + ifName + " -j " + cChainName; in SetIfaceQuotaDetail() 367 command = "-t filter -I " + fChainName + " -i " + ifName in SetIfaceQuotaDetail() 393 SetIfaceQuota(const std::string &ifName, int64_t bytes) SetIfaceQuota() argument 406 RemoveIfaceQuota(const std::string &ifName) RemoveIfaceQuota() argument [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/src/ |
H A D | notify_callback_stub.cpp | 70 std::string ifName = data.ReadString(); in CmdOnInterfaceAddressUpdated() local 74 int32_t result = OnInterfaceAddressUpdated(addr, ifName, flags, scope); in CmdOnInterfaceAddressUpdated() 86 std::string ifName = data.ReadString(); in CmdOnInterfaceAddressRemoved() local 90 int32_t result = OnInterfaceAddressRemoved(addr, ifName, flags, scope); in CmdOnInterfaceAddressRemoved() 101 std::string ifName = data.ReadString(); in CmdOnInterfaceAdded() local 103 int32_t result = OnInterfaceAdded(ifName); in CmdOnInterfaceAdded() 113 std::string ifName = data.ReadString(); in CmdOnInterfaceRemoved() local 115 int32_t result = OnInterfaceRemoved(ifName); in CmdOnInterfaceRemoved() 126 std::string ifName = data.ReadString(); in CmdOnInterfaceChanged() local 129 int32_t result = OnInterfaceChanged(ifName, u in CmdOnInterfaceChanged() 140 std::string ifName = data.ReadString(); CmdOnInterfaceLinkStateChanged() local 157 std::string ifName = data.ReadString(); CmdOnRouteChanged() local [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/wrapper/ |
H A D | wrapper_distributor.h | 44 void NotifyInterfaceAdd(const std::string &ifName); 45 void NotifyInterfaceRemove(const std::string &ifName); 46 void NotifyInterfaceChange(const std::string &ifName, bool isUp); 47 void NotifyInterfaceLinkStateChange(const std::string &ifName, bool isUp); 48 void NotifyQuotaLimitReache(const std::string &labelName, const std::string &ifName); 49 void NotifyInterfaceAddressUpdate(const std::string &addr, const std::string &ifName, int32_t flags, 51 void NotifyInterfaceAddressRemove(const std::string &addr, const std::string &ifName, int32_t flags, 54 const std::string &ifName);
|
/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/ |
H A D | notify_callback_proxy.h | 27 int32_t OnInterfaceAddressUpdated(const std::string &addr, const std::string &ifName, int flags, 29 int32_t OnInterfaceAddressRemoved(const std::string &addr, const std::string &ifName, int flags, 31 int32_t OnInterfaceAdded(const std::string &ifName) override; 32 int32_t OnInterfaceRemoved(const std::string &ifName) override; 33 int32_t OnInterfaceChanged(const std::string &ifName, bool up) override; 34 int32_t OnInterfaceLinkStateChanged(const std::string &ifName, bool up) override; 36 const std::string &ifName) override;
|
H A D | i_notify_callback.h | 34 virtual int32_t OnInterfaceAddressUpdated(const std::string &addr, const std::string &ifName, int flags, 36 virtual int32_t OnInterfaceAddressRemoved(const std::string &addr, const std::string &ifName, int flags, 38 virtual int32_t OnInterfaceAdded(const std::string &ifName) = 0; 39 virtual int32_t OnInterfaceRemoved(const std::string &ifName) = 0; 40 virtual int32_t OnInterfaceChanged(const std::string &ifName, bool up) = 0; 41 virtual int32_t OnInterfaceLinkStateChanged(const std::string &ifName, bool up) = 0; 43 const std::string &ifName) = 0;
|
/foundation/communication/netmanager_base/test/commonduplicatedcode/ |
H A D | common_notify_callback_test.h | 27 int32_t OnInterfaceAddressUpdated(const std::string &addr, const std::string &ifName, int flags, int scope) override 32 int32_t OnInterfaceAddressRemoved(const std::string &addr, const std::string &ifName, int flags, int scope) override 37 int32_t OnInterfaceAdded(const std::string &ifName) override 42 int32_t OnInterfaceRemoved(const std::string &ifName) override 47 int32_t OnInterfaceChanged(const std::string &ifName, bool up) override 52 int32_t OnInterfaceLinkStateChanged(const std::string &ifName, bool up) override 58 bool updated, const std::string &route, const std::string &gateway, const std::string &ifName) override
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_controller/ |
H A D | wifi_service_scheduler_test.cpp | 52 std::string ifName; in AutoStartStaServiceTest() local 55 EXPECT_EQ(pWifiServiceScheduler->AutoStartStaService(0, ifName), WIFI_OPT_SUCCESS); in AutoStartStaServiceTest() 67 std::string ifName; in AutoStartScanOnlyTest() local 70 EXPECT_EQ(pWifiServiceScheduler->AutoStartScanOnly(0, ifName), WIFI_OPT_SUCCESS); in AutoStartScanOnlyTest() 82 std::string ifName; in AutoStartSemiStaServiceTest() local 85 EXPECT_EQ(pWifiServiceScheduler->AutoStartSemiStaService(0, ifName), WIFI_OPT_SUCCESS); in AutoStartSemiStaServiceTest() 90 std::string ifName; in AutoStartApServiceTest() local 93 EXPECT_EQ(pWifiServiceScheduler->AutoStartApService(0, ifName), WIFI_OPT_FAILED); in AutoStartApServiceTest() 97 EXPECT_EQ(pWifiServiceScheduler->AutoStartApService(0, ifName), WIFI_OPT_SUCCESS); in AutoStartApServiceTest()
|
/foundation/communication/netmanager_base/services/netconnmanager/include/stub/ |
H A D | net_interface_callback_proxy.h | 31 int32_t OnInterfaceAddressUpdated(const std::string &addr, const std::string &ifName, int32_t flags, 33 int32_t OnInterfaceAddressRemoved(const std::string &addr, const std::string &ifName, int32_t flags, 35 int32_t OnInterfaceAdded(const std::string &ifName) override; 36 int32_t OnInterfaceRemoved(const std::string &ifName) override; 37 int32_t OnInterfaceChanged(const std::string &ifName, bool up) override; 38 int32_t OnInterfaceLinkStateChanged(const std::string &ifName, bool up) override;
|
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/proxy/ |
H A D | i_net_interface_callback.h | 32 virtual int32_t OnInterfaceAddressUpdated(const std::string &addr, const std::string &ifName, int32_t flags, 34 virtual int32_t OnInterfaceAddressRemoved(const std::string &addr, const std::string &ifName, int32_t flags, 36 virtual int32_t OnInterfaceAdded(const std::string &ifName) = 0; 37 virtual int32_t OnInterfaceRemoved(const std::string &ifName) = 0; 38 virtual int32_t OnInterfaceChanged(const std::string &ifName, bool up) = 0; 39 virtual int32_t OnInterfaceLinkStateChanged(const std::string &ifName, bool up) = 0;
|
/foundation/communication/netmanager_ext/services/mdnsmanager/include/ |
H A D | net_interface_callback.h | 29 int32_t OnInterfaceAddressUpdated(const std::string &addr, const std::string &ifName, int32_t flags, 31 int32_t OnInterfaceAddressRemoved(const std::string &addr, const std::string &ifName, int32_t flags, 33 int32_t OnInterfaceAdded(const std::string &ifName) override; 34 int32_t OnInterfaceRemoved(const std::string &ifName) override; 35 int32_t OnInterfaceChanged(const std::string &ifName, bool up) override; 36 int32_t OnInterfaceLinkStateChanged(const std::string &ifName, bool up) override;
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/ |
H A D | if_config.cpp | 119 void IfConfig::FlushIpAddr(const std::string& ifName, const int& ipType) in FlushIpAddr() argument 121 LOGI("Flush IP, ifName: %{public}s", ifName.c_str()); in FlushIpAddr() 128 strcpy_s(ifr.ifr_name, sizeof(ifr.ifr_name), ifName.c_str()) != EOK) { in FlushIpAddr() 159 const std::string &ifName, const std::string &ipAddr, const std::string &mask, const int &ipType) in AddIpAddr() 161 LOGI("Add ip address, ifName = %{public}s", ifName.c_str()); in AddIpAddr() 163 if (!CheckIfaceValid(ifName)) { in AddIpAddr() 169 strcpy_s(ifr.ifr_name, sizeof(ifr.ifr_name), ifName.c_str()) != EOK) { in AddIpAddr() 217 ipRouteCmd.push_back(ifName); in AddIpAddr() 158 AddIpAddr( const std::string &ifName, const std::string &ipAddr, const std::string &mask, const int &ipType) AddIpAddr() argument 256 GetIpAddr(const std::string& ifName, std::string& ipAddr) GetIpAddr() argument 325 SetNetDns(const std::string& ifName, const std::string& dns1, const std::string& dns2) SetNetDns() argument 348 AddIfRoute(const std::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay, const int &ipType) AddIfRoute() argument 363 AddIpv4Route( const std::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay) AddIpv4Route() argument 415 AddIpv6Route( const std::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay) AddIpv6Route() argument [all...] |
H A D | if_config.h | 41 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); 50 bool GetIpAddr(const std::string& ifName, std::string& ipAddr); 62 void SetNetDns(const std::string &ifName, const std::string &dns1, const std::string &dns2); 64 void AddIfRoute(const std::string &ifName, const std::string &ipAddr, const std::string &mask, 68 const std::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay); 71 const std::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay);
|
/foundation/communication/netmanager_base/services/netconnmanager/src/stub/ |
H A D | net_interface_callback_proxy.cpp | 37 int32_t NetInterfaceStateCallbackProxy::OnInterfaceAddressUpdated(const std::string &addr, const std::string &ifName, in OnInterfaceAddressUpdated() argument 50 if (!dataParcel.WriteString(ifName)) { in OnInterfaceAddressUpdated() 79 int32_t NetInterfaceStateCallbackProxy::OnInterfaceAddressRemoved(const std::string &addr, const std::string &ifName, in OnInterfaceAddressRemoved() argument 92 if (!dataParcel.WriteString(ifName)) { in OnInterfaceAddressRemoved() 121 int32_t NetInterfaceStateCallbackProxy::OnInterfaceAdded(const std::string &ifName) in OnInterfaceAdded() argument 129 if (!dataParcel.WriteString(ifName)) { in OnInterfaceAdded() 149 int32_t NetInterfaceStateCallbackProxy::OnInterfaceRemoved(const std::string &ifName) in OnInterfaceRemoved() argument 157 if (!dataParcel.WriteString(ifName)) { in OnInterfaceRemoved() 177 int32_t NetInterfaceStateCallbackProxy::OnInterfaceChanged(const std::string &ifName, bool up) in OnInterfaceChanged() argument 185 if (!dataParcel.WriteString(ifName)) { in OnInterfaceChanged() 209 OnInterfaceLinkStateChanged(const std::string &ifName, bool up) OnInterfaceLinkStateChanged() argument [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/include/manager/ |
H A D | distributed_manager.h | 38 int32_t CreateDistributedNic(const std::string &virNicAddr, const std::string &ifName); 39 int32_t DestroyDistributedNic(const std::string &ifName); 40 int32_t CreateDistributedInterface(const std::string &ifName); 41 int32_t SetDistributedNicMtu(const std::string &ifName, int32_t mtu); 42 int32_t SetDistributedNicAddress(const std::string &ifName, const std::string &tunAddr); 55 int32_t SetDistributedNicUp(const std::string &ifName); 56 int32_t SetDistributedNicDown(const std::string &ifName);
|
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | net_manager_native.cpp | 158 int32_t NetManagerNative::AddInterfaceAddress(std::string ifName, std::string addrString, int32_t prefixLength) in AddInterfaceAddress() argument 160 if (strncmp(ifName.c_str(), TUN_CARD_NAME, strlen(TUN_CARD_NAME)) != 0) { in AddInterfaceAddress() 161 return interfaceManager_->AddAddress(ifName.c_str(), addrString.c_str(), prefixLength); in AddInterfaceAddress() 163 return VpnManager::GetInstance().SetVpnAddress(ifName, addrString, prefixLength); in AddInterfaceAddress() 166 int32_t NetManagerNative::DelInterfaceAddress(std::string ifName, std::string addrString, int32_t prefixLength) in DelInterfaceAddress() argument 168 return interfaceManager_->DelAddress(ifName.c_str(), addrString.c_str(), prefixLength); in DelInterfaceAddress() 171 int32_t NetManagerNative::DelInterfaceAddress(std::string ifName, std::string addrString, int32_t prefixLength, in DelInterfaceAddress() argument 174 return interfaceManager_->DelAddress(ifName.c_str(), addrString.c_str(), prefixLength, netCapabilities); in DelInterfaceAddress() 230 void NetManagerNative::ClearInterfaceAddrs(const std::string ifName) {} in ClearInterfaceAddrs() argument 232 int32_t NetManagerNative::GetInterfaceMtu(std::string ifName) in GetInterfaceMtu() argument 237 SetInterfaceMtu(std::string ifName, int32_t mtuValue) SetInterfaceMtu() argument 419 BandwidthSetIfaceQuota(const std::string &ifName, int64_t bytes) BandwidthSetIfaceQuota() argument 424 BandwidthRemoveIfaceQuota(const std::string &ifName) BandwidthRemoveIfaceQuota() argument 559 AddStaticArp(const std::string &ipAddr, const std::string &macAddr, const std::string &ifName) AddStaticArp() argument 570 DelStaticArp(const std::string &ipAddr, const std::string &macAddr, const std::string &ifName) DelStaticArp() argument [all...] |
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_buscenter/ |
H A D | lnn_ip_network_impl_mock.cpp | 46 const char *ifName, char *ip, char *netmask, uint32_t len) in ActionOfGetNetworkIpByIfName() 48 if (ifName == nullptr || netmask == nullptr || len == 0) { in ActionOfGetNetworkIpByIfName() 110 int32_t LnnGetAddrTypeByIfName(const char *ifName, ConnectionAddrType *type) in LnnGetAddrTypeByIfName() argument 112 return GetLnnIpNetworkImplInterface()->LnnGetAddrTypeByIfName(ifName, type); in LnnGetAddrTypeByIfName() 150 void LnnNotifyPhysicalSubnetStatusChanged(const char *ifName, ProtocolType protocolType, void *status) in LnnNotifyPhysicalSubnetStatusChanged() argument 152 return GetLnnIpNetworkImplInterface()->LnnNotifyPhysicalSubnetStatusChanged(ifName, protocolType, status); in LnnNotifyPhysicalSubnetStatusChanged() 165 int32_t GetNetworkIpByIfName(const char *ifName, char *ip, char *netmask, uint32_t len) in GetNetworkIpByIfName() argument 167 return GetLnnIpNetworkImplInterface()->GetNetworkIpByIfName(ifName, ip, netmask, len); in GetNetworkIpByIfName() 45 ActionOfGetNetworkIpByIfName( const char *ifName, char *ip, char *netmask, uint32_t len) ActionOfGetNetworkIpByIfName() argument
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_wpa_proxy_test.cpp | 45 const char ifName[10] = "Wlan1"; in HWTEST_F() local 47 WifiErrorNo result = HdiAddWpaIface(ifName, confName); in HWTEST_F() 51 result = HdiAddWpaIface(ifName, nullptr); in HWTEST_F() 57 const char ifName[10] = "Wlan1"; in HWTEST_F() local 60 result = HdiRemoveWpaIface(ifName); in HWTEST_F() 108 extern "C" void RemoveIfaceName(const char* ifName); 116 extern "C" void AddIfaceName(const char* ifName); 130 extern "C" bool FindifaceName(const char* ifName);
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/ |
H A D | if_config_test.cpp | 55 * @tc.desc: test with error ifName 62 std::string ifName = ""; in HWTEST_F() local 66 IfConfig::GetInstance().AddIpAddr(ifName, ipAddr, mask, ipType); in HWTEST_F() 77 std::string ifName = "wlan0"; in HWTEST_F() local 81 IfConfig::GetInstance().AddIpAddr(ifName, ipAddr, mask, ipType); in HWTEST_F() 92 std::string ifName = "wlan0"; in HWTEST_F() local 96 IfConfig::GetInstance().AddIpAddr(ifName, ipAddr, mask, ipType); in HWTEST_F() 143 std::string ifName = "test"; in HWTEST_F() local 145 IfConfig::GetInstance().FlushIpAddr(ifName, ipType); in HWTEST_F()
|
/foundation/communication/netmanager_base/services/netsyscontroller/src/ |
H A D | netsys_controller_service_impl.cpp | 126 int32_t NetsysControllerServiceImpl::NetworkAddRoute(int32_t netId, const std::string &ifName, in NetworkAddRoute() argument 129 NETMGR_LOG_I("Add Route: netId[%{public}d], ifName[%{public}s], destination[%{public}s], nextHop[%{public}s]", in NetworkAddRoute() 130 netId, ifName.c_str(), ToAnonymousIp(destination).c_str(), ToAnonymousIp(nextHop).c_str()); in NetworkAddRoute() 132 return mockNetsysClient_.NetworkAddRoute(netId, ifName, destination, nextHop); in NetworkAddRoute() 134 return netsysClient_.NetworkAddRoute(netId, ifName, destination, nextHop); in NetworkAddRoute() 137 int32_t NetsysControllerServiceImpl::NetworkRemoveRoute(int32_t netId, const std::string &ifName, in NetworkRemoveRoute() argument 140 NETMGR_LOG_I("Remove Route: netId[%{public}d], ifName[%{public}s], destination[%{public}s], nextHop[%{public}s]", in NetworkRemoveRoute() 141 netId, ifName.c_str(), ToAnonymousIp(destination).c_str(), ToAnonymousIp(nextHop).c_str()); in NetworkRemoveRoute() 143 return mockNetsysClient_.NetworkRemoveRoute(netId, ifName, destination, nextHop); in NetworkRemoveRoute() 145 return netsysClient_.NetworkRemoveRoute(netId, ifName, destinatio in NetworkRemoveRoute() 178 ClearInterfaceAddrs(const std::string &ifName) ClearInterfaceAddrs() argument 187 GetInterfaceMtu(const std::string &ifName) GetInterfaceMtu() argument 196 SetInterfaceMtu(const std::string &ifName, int32_t mtu) SetInterfaceMtu() argument 211 AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength) AddInterfaceAddress() argument 222 DelInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength) DelInterfaceAddress() argument 233 DelInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength, const std::string &netCapabilities) DelInterfaceAddress() argument 616 BandwidthSetIfaceQuota(const std::string &ifName, int64_t bytes) BandwidthSetIfaceQuota() argument 622 BandwidthRemoveIfaceQuota(const std::string &ifName) BandwidthRemoveIfaceQuota() argument 765 AddStaticArp(const std::string &ipAddr, const std::string &macAddr, const std::string &ifName) AddStaticArp() argument 772 DelStaticArp(const std::string &ipAddr, const std::string &macAddr, const std::string &ifName) DelStaticArp() argument [all...] |