Lines Matching refs:iface

153 int32_t EthernetService::GlobalInterfaceStateCallback::OnInterfaceAdded(const std::string &iface)
155 NETMGR_EXT_LOG_D("iface: %{public}s, added", iface.c_str());
157 [=](const sptr<InterfaceStateCallback> &callback) { callback->OnInterfaceAdded(iface); });
161 int32_t EthernetService::GlobalInterfaceStateCallback::OnInterfaceRemoved(const std::string &iface)
163 NETMGR_EXT_LOG_D("iface: %{public}s, removed", iface.c_str());
165 [=](const sptr<InterfaceStateCallback> &callback) { callback->OnInterfaceRemoved(iface); });
169 int32_t EthernetService::GlobalInterfaceStateCallback::OnInterfaceChanged(const std::string &iface, bool up)
176 NETMGR_EXT_LOG_D("iface: %{public}s, up: %{public}d", ifName.c_str(), up);
195 const std::string &iface)
214 int32_t EthernetService::SetIfaceConfig(const std::string &iface, sptr<InterfaceConfiguration> &ic)
216 NETMGR_EXT_LOG_D("Set iface: %{public}s config", iface.c_str());
226 return ethManagement_.UpdateDevInterfaceCfg(iface, ic);
229 int32_t EthernetService::GetIfaceConfig(const std::string &iface, sptr<InterfaceConfiguration> &ifaceConfig)
231 NETMGR_EXT_LOG_D("Get iface: %{public}s config", iface.c_str());
241 return ethManagement_.GetDevInterfaceCfg(iface, ifaceConfig);
244 int32_t EthernetService::IsIfaceActive(const std::string &iface, int32_t &activeStatus)
246 NETMGR_EXT_LOG_D("Get iface: %{public}s is active", iface.c_str());
256 return ethManagement_.IsIfaceActive(iface, activeStatus);
321 int32_t EthernetService::SetInterfaceUp(const std::string &iface)
323 NETMGR_EXT_LOG_D("Set interface: %{public}s up", iface.c_str());
328 return NetsysController::GetInstance().SetInterfaceUp(iface);
331 int32_t EthernetService::SetInterfaceDown(const std::string &iface)
333 NETMGR_EXT_LOG_D("Set interface: %{public}s down", iface.c_str());
338 return NetsysController::GetInstance().SetInterfaceDown(iface);
341 int32_t EthernetService::GetInterfaceConfig(const std::string &iface, OHOS::nmd::InterfaceConfigurationParcel &config)
343 NETMGR_EXT_LOG_D("Get interface: %{public}s config", iface.c_str());
348 config.ifName = iface;
352 int32_t EthernetService::SetInterfaceConfig(const std::string &iface, OHOS::nmd::InterfaceConfigurationParcel &cfg)
354 NETMGR_EXT_LOG_D("Set interface: %{public}s config", iface.c_str());
359 cfg.ifName = iface;