Lines Matching refs:network

221   for (Network* network : networks_) {  in GetNetworks()
223 if (network->prefix().family() == AF_INET6) { in GetNetworks()
229 result->push_back(network); in GetNetworks()
249 for (Network* network : list) { in MergeNetworkList()
251 std::string key = MakeNetworkKey(network->name(), in MergeNetworkList()
252 network->prefix(), in MergeNetworkList()
253 network->prefix_length()); in MergeNetworkList()
257 addrlist.net = network; in MergeNetworkList()
261 const std::vector<InterfaceAddress>& addresses = network->GetIPs(); in MergeNetworkList()
267 delete network; in MergeNetworkList()
322 for (Network* network : networks_) { in MergeNetworkList()
323 network->set_active(true); in MergeNetworkList()
334 for (Network* network : networks_) { in MergeNetworkList()
335 network->set_preference(pref); in MergeNetworkList()
452 scoped_ptr<Network> network(new Network(cursor->ifa_name, in ConvertIfAddrs() local
455 network->set_default_local_address_provider(this); in ConvertIfAddrs()
456 network->set_scope_id(scope_id); in ConvertIfAddrs()
457 network->AddIP(ip); in ConvertIfAddrs()
458 network->set_ignored(IsIgnoredNetwork(*network)); in ConvertIfAddrs()
459 if (include_ignored || !network->ignored()) { in ConvertIfAddrs()
460 current_networks[key] = network.get(); in ConvertIfAddrs()
461 networks->push_back(network.release()); in ConvertIfAddrs()
570 scoped_ptr<Network> network; in CreateNetworks() local
609 scoped_ptr<Network> network(new Network(name, description, prefix, in CreateNetworks() local
611 network->set_default_local_address_provider(this); in CreateNetworks()
612 network->set_scope_id(scope_id); in CreateNetworks()
613 network->AddIP(ip); in CreateNetworks()
614 bool ignored = IsIgnoredNetwork(*network); in CreateNetworks()
615 network->set_ignored(ignored); in CreateNetworks()
616 if (include_ignored || !network->ignored()) { in CreateNetworks()
617 current_networks[key] = network.get(); in CreateNetworks()
618 networks->push_back(network.release()); in CreateNetworks()
661 bool BasicNetworkManager::IsIgnoredNetwork(const Network& network) const { in IsIgnoredNetwork()
664 if (network.name() == ignored_name) { in IsIgnoredNetwork()
672 if (strncmp(network.name().c_str(), "vmnet", 5) == 0 || in IsIgnoredNetwork()
673 strncmp(network.name().c_str(), "vnic", 4) == 0 || in IsIgnoredNetwork()
674 strncmp(network.name().c_str(), "vboxnet", 7) == 0) { in IsIgnoredNetwork()
679 if (ignore_non_default_routes_ && !IsDefaultRoute(network.name())) { in IsIgnoredNetwork()
688 if (strstr(network.description().c_str(), "VMnet") != NULL) { in IsIgnoredNetwork()
694 if (network.prefix().family() == AF_INET) { in IsIgnoredNetwork()
695 return (network.prefix().v4AddressAsHostOrderInteger() < 0x01000000); in IsIgnoredNetwork()
816 for (const Network* network : list) { in DumpNetworks() local
817 LOG(LS_INFO) << network->ToString() << ": " << network->description() in DumpNetworks()
818 << ", active ? " << network->active() in DumpNetworks()
819 << ((network->ignored()) ? ", Ignored" : ""); in DumpNetworks()