Lines Matching refs:domain

48 		net_domain* domain = get_domain(key->sa_family);  in HashKey()  local
49 if (domain == NULL) in HashKey()
52 return domain->address_module->hash_address(key, false); in HashKey()
57 return address->domain->address_module->hash_address(address->local, in Hash()
69 return address->domain->address_module->equal_addresses(key, in Compare()
152 address->domain->address_module->hash_address(address->local, in dump_local()
281 add_route(domain, &route); in AddDefaultRoutes()
287 add_route(domain, &route); in AddDefaultRoutes()
304 remove_route(domain, &route); in RemoveDefaultRoutes()
310 remove_route(domain, &route); in RemoveDefaultRoutes()
338 kprintf("domain: %p (family %u)\n", domain, in Dump()
339 domain != NULL ? domain->family : AF_UNSPEC); in Dump()
342 if (local != NULL && domain != NULL) { in Dump()
343 domain->address_module->print_address_buffer(local, buffer, in Dump()
349 if (mask != NULL && domain != NULL) { in Dump()
350 domain->address_module->print_address_buffer(mask, buffer, in Dump()
356 if (destination != NULL && domain != NULL) { in Dump()
357 domain->address_module->print_address_buffer(destination, buffer, in Dump()
436 domain = netDomain; in _Init()
489 put_domain_datalink_protocols(this, datalink->domain); in ~Interface()
540 if (address->domain->family == family in FirstUnconfiguredForFamily()
557 Interface::AddressForDestination(net_domain* domain, in AddressForDestination() argument
569 if (address->domain == domain in AddressForDestination()
571 && domain->address_module->equal_addresses(address->destination, in AddressForDestination()
586 Interface::AddressForLocal(net_domain* domain, const sockaddr* local) in AddressForLocal() argument
592 if (address->domain == domain in AddressForLocal()
594 && domain->address_module->equal_addresses(address->local, local)) { in AddressForLocal()
607 net_domain* domain = address->domain; in AddAddress() local
608 if (domain == NULL) in AddAddress()
626 net_domain* domain = address->domain; in RemoveAddress() local
627 if (domain == NULL) in RemoveAddress()
746 Interface::Control(net_domain* domain, int32 option, ifreq& request, in Control() argument
798 if (!domain->address_module->is_empty_address( in Control()
801 address = AddressForLocal(domain, in Control()
806 address = FirstForFamily(domain->family); in Control()
810 address = new(std::nothrow) InterfaceAddress(this, domain); in Control()
832 if (!domain->address_module->equal_addresses( in Control()
838 if (status == B_OK && !domain->address_module->equal_addresses( in Control()
840 && !domain->address_module->is_empty_address( in Control()
846 if (status == B_OK && !domain->address_module->equal_addresses( in Control()
849 && !domain->address_module->is_empty_address( in Control()
852 (domain->address_module->flags in Control()
889 if (address->domain == domain in Control()
890 && domain->address_module->equal_addresses( in Control()
899 address = _FirstForFamily(domain->family); in Control()
902 address = new(std::nothrow) InterfaceAddress(this, domain); in Control()
924 domain_datalink* datalink = DomainDatalink(domain->family); in Control()
973 if (address->domain != NULL) in WentDown()
974 invalidate_routes(address->domain, this); in WentDown()
980 Interface::CreateDomainDatalinkIfNeeded(net_domain* domain) in CreateDomainDatalinkIfNeeded() argument
984 if (fDatalinkTable.Lookup(domain->family) != NULL) in CreateDomainDatalinkIfNeeded()
987 TRACE("Interface %p: create domain datalink for domain %p\n", this, domain); in CreateDomainDatalinkIfNeeded()
995 datalink->domain = domain; in CreateDomainDatalinkIfNeeded()
1011 datalink->direct_address.domain = domain; in CreateDomainDatalinkIfNeeded()
1017 status_t status = get_domain_datalink_protocols(this, domain); in CreateDomainDatalinkIfNeeded()
1060 kprintf("%2zu. domain: %p\n", ++i, datalink->domain); in Dump()
1134 if (address->domain != NULL && address->domain->family == family) in _FirstForFamily()
1149 if (address->domain->address_module->set_to((sockaddr*)&oldAddress, in _ChangeAddress()
1156 if (address->domain->address_module->set_to((sockaddr*)&newAddress, in _ChangeAddress()
1161 if (address->domain->address_module->equal_addresses( in _ChangeAddress()
1172 domain_datalink* datalink = DomainDatalink(address->domain); in _ChangeAddress()
1227 add_interface(const char* name, net_domain_private* domain, in add_interface() argument
1247 status_t status = add_interface_address(interface, domain, request); in add_interface()
1296 add_interface_address(Interface* interface, net_domain_private* domain, in add_interface_address() argument
1300 if ((request.ifra_addr.ss_family != domain->family in add_interface_address()
1302 || (request.ifra_mask.ss_family != domain->family in add_interface_address()
1304 || (request.ifra_broadaddr.ss_family != domain->family in add_interface_address()
1311 = new(std::nothrow) InterfaceAddress(interface, domain); in add_interface_address()
1317 status = interface->CreateDomainDatalinkIfNeeded(domain); in add_interface_address()
1323 domain_datalink* datalink = interface->DomainDatalink(domain->family); in add_interface_address()
1346 AddressString(interfaceAddress->domain, oldAddress).Data(), in update_interface_address()
1347 AddressString(interfaceAddress->domain, newAddress).Data()); in update_interface_address()
1382 net_domain* domain = interfaceAddress->domain; in update_interface_address() local
1394 if ((domain->address_module->flags in update_interface_address()
1401 domain->address_module->set_to_defaults(defaultNetmask, in update_interface_address()
1416 get_interface(net_domain* domain, uint32 index) in get_interface() argument
1434 if (interface->CreateDomainDatalinkIfNeeded(domain) != B_OK) in get_interface()
1442 get_interface(net_domain* domain, const char* name) in get_interface() argument
1454 if (interface->CreateDomainDatalinkIfNeeded(domain) != B_OK) in get_interface()
1462 get_interface_for_device(net_domain* domain, uint32 index) in get_interface_for_device() argument
1476 if (interface->CreateDomainDatalinkIfNeeded(domain) != B_OK) in get_interface_for_device()
1492 get_interface_for_link(net_domain* domain, const sockaddr* _linkAddress) in get_interface_for_link() argument
1518 if (interface->CreateDomainDatalinkIfNeeded(domain) != B_OK) in get_interface_for_link()
1547 get_interface_address_for_destination(net_domain* domain, in get_interface_address_for_destination() argument
1558 = interface->AddressForDestination(domain, destination); in get_interface_address_for_destination()
1575 get_interface_address_for_link(net_domain* domain, const sockaddr* address, in get_interface_address_for_link() argument
1594 return interface->FirstUnconfiguredForFamily(domain->family); in get_interface_address_for_link()
1596 return interface->FirstForFamily(domain->family); in get_interface_address_for_link()