• Home
  • Raw
  • Download

Lines Matching refs:network

324   for (Network* network : list) {  in MergeNetworkList()
326 std::string key = MakeNetworkKey(network->name(), network->prefix(), in MergeNetworkList()
327 network->prefix_length()); in MergeNetworkList()
331 addrlist.net = network; in MergeNetworkList()
335 const std::vector<InterfaceAddress>& addresses = network->GetIPs(); in MergeNetworkList()
341 delete network; in MergeNetworkList()
404 Network* network = kv.second; in MergeNetworkList() local
406 bool found = absl::c_linear_search(networks_, network); in MergeNetworkList()
407 network->set_active(found); in MergeNetworkList()
418 for (Network* network : networks_) { in MergeNetworkList()
419 network->set_preference(pref); in MergeNetworkList()
462 for (Network* network : networks_) { in GetNetworkFromAddress()
463 const auto& ips = network->GetIPs(); in GetNetworkFromAddress()
467 return network; in GetNetworkFromAddress()
559 std::unique_ptr<Network> network( in ConvertIfAddrs() local
562 network->set_default_local_address_provider(this); in ConvertIfAddrs()
563 network->set_scope_id(scope_id); in ConvertIfAddrs()
564 network->AddIP(ip); in ConvertIfAddrs()
565 network->set_ignored(IsIgnoredNetwork(*network)); in ConvertIfAddrs()
566 network->set_underlying_type_for_vpn(vpn_underlying_adapter_type); in ConvertIfAddrs()
567 if (include_ignored || !network->ignored()) { in ConvertIfAddrs()
568 current_networks[key] = network.get(); in ConvertIfAddrs()
569 networks->push_back(network.release()); in ConvertIfAddrs()
685 std::unique_ptr<Network> network; in CreateNetworks() local
740 std::unique_ptr<Network> network(new Network( in CreateNetworks() local
742 network->set_default_local_address_provider(this); in CreateNetworks()
743 network->set_mdns_responder_provider(this); in CreateNetworks()
744 network->set_scope_id(scope_id); in CreateNetworks()
745 network->AddIP(ip); in CreateNetworks()
746 bool ignored = IsIgnoredNetwork(*network); in CreateNetworks()
747 network->set_ignored(ignored); in CreateNetworks()
748 if (include_ignored || !network->ignored()) { in CreateNetworks()
749 current_networks[key] = network.get(); in CreateNetworks()
750 networks->push_back(network.release()); in CreateNetworks()
766 bool BasicNetworkManager::IsIgnoredNetwork(const Network& network) const { in IsIgnoredNetwork()
769 if (network.name() == ignored_name) { in IsIgnoredNetwork()
777 if (strncmp(network.name().c_str(), "vmnet", 5) == 0 || in IsIgnoredNetwork()
778 strncmp(network.name().c_str(), "vnic", 4) == 0 || in IsIgnoredNetwork()
779 strncmp(network.name().c_str(), "vboxnet", 7) == 0) { in IsIgnoredNetwork()
787 if (strstr(network.description().c_str(), "VMnet") != nullptr) { in IsIgnoredNetwork()
793 if (network.prefix().family() == AF_INET) { in IsIgnoredNetwork()
794 return (network.prefix().v4AddressAsHostOrderInteger() < 0x01000000); in IsIgnoredNetwork()
924 for (const Network* network : list) { in DumpNetworks() local
925 RTC_LOG(LS_INFO) << network->ToString() << ": " << network->description() in DumpNetworks()
926 << ", active ? " << network->active() in DumpNetworks()
927 << ((network->ignored()) ? ", Ignored" : ""); in DumpNetworks()