Lines Matching refs:it
63 auto it = values.find("AdministrativeState"); in Manager() local
64 if (it == values.end()) in Manager()
76 const auto& state = std::get<std::string>(it->second); in Manager()
173 if (auto it = interfacesByIdx.find(info.intf.idx); in createInterface() local
174 it != interfacesByIdx.end()) in createInterface()
176 if (info.intf.name && *info.intf.name != it->second->interfaceName()) in createInterface()
178 interfaces.erase(it->second->interfaceName()); in createInterface()
179 interfacesByIdx.erase(it); in createInterface()
183 it->second->updateInfo(info.intf); in createInterface()
189 auto it = interfaces.find(*info.intf.name); in createInterface() local
190 if (it != interfaces.end()) in createInterface()
195 it->second.get()); in createInterface()
197 it->second->updateInfo(info.intf); in createInterface()
251 if (auto it = systemdNetworkdEnabled.find(info.idx); in addInterface() local
252 it != systemdNetworkdEnabled.end()) in addInterface()
254 createInterface(infoIt->second, it->second); in addInterface()
305 if (auto it = intfInfo.find(info.ifidx); it != intfInfo.end()) in addAddress() local
307 it->second.addrs.insert_or_assign(info.ifaddr, info); in addAddress()
308 if (auto it = interfacesByIdx.find(info.ifidx); in addAddress() local
309 it != interfacesByIdx.end()) in addAddress()
311 it->second->addAddr(info); in addAddress()
323 if (auto it = interfacesByIdx.find(info.ifidx); it != interfacesByIdx.end()) in removeAddress() local
325 it->second->addrs.erase(info.ifaddr); in removeAddress()
326 if (auto it = intfInfo.find(info.ifidx); it != intfInfo.end()) in removeAddress() local
328 it->second.addrs.erase(info.ifaddr); in removeAddress()
339 if (auto it = intfInfo.find(info.ifidx); it != intfInfo.end()) in addNeighbor() local
341 it->second.staticNeighs.insert_or_assign(*info.addr, info); in addNeighbor()
342 if (auto it = interfacesByIdx.find(info.ifidx); in addNeighbor() local
343 it != interfacesByIdx.end()) in addNeighbor()
345 it->second->addStaticNeigh(info); in addNeighbor()
361 if (auto it = intfInfo.find(info.ifidx); it != intfInfo.end()) in removeNeighbor() local
363 it->second.staticNeighs.erase(*info.addr); in removeNeighbor()
364 if (auto it = interfacesByIdx.find(info.ifidx); in removeNeighbor() local
365 it != interfacesByIdx.end()) in removeNeighbor()
367 it->second->staticNeighbors.erase(*info.addr); in removeNeighbor()
374 if (auto it = intfInfo.find(ifidx); it != intfInfo.end()) in addDefGw() local
380 it->second.defgw4.emplace(addr); in addDefGw()
386 it->second.defgw6.emplace(addr); in addDefGw()
390 if (auto it = interfacesByIdx.find(ifidx); it != interfacesByIdx.end()) in addDefGw() local
397 it->second->EthernetInterfaceIntf::defaultGateway( in addDefGw()
404 it->second->EthernetInterfaceIntf::defaultGateway6( in addDefGw()
419 if (auto it = intfInfo.find(ifidx); it != intfInfo.end()) in removeDefGw() local
425 if (it->second.defgw4 == addr) in removeDefGw()
427 it->second.defgw4.reset(); in removeDefGw()
434 if (it->second.defgw6 == addr) in removeDefGw()
436 it->second.defgw6.reset(); in removeDefGw()
441 if (auto it = interfacesByIdx.find(ifidx); it != interfacesByIdx.end()) in removeDefGw() local
450 if (it->second->defaultGateway() == tsh(addr)) in removeDefGw()
452 it->second->EthernetInterfaceIntf::defaultGateway( in removeDefGw()
462 if (it->second->defaultGateway6() == tsh(addr)) in removeDefGw()
464 it->second->EthernetInterfaceIntf::defaultGateway6( in removeDefGw()
484 auto it = interfaces.find(interfaceName); in vlan() local
485 if (it == interfaces.end()) in vlan()
491 return it->second->createVLAN(id); in vlan()
523 if (auto it = intfInfo.find(ifidx); it != intfInfo.end()) in handleAdminState() local
525 createInterface(it->second, managed); in handleAdminState()