/haiku/src/add-ons/kernel/network/stack/ |
H A D | domains.cpp | 54 while (net_domain_private* domain = iterator.Next()) { in lookup_domain() local 55 if (domain->family == family) in lookup_domain() 56 return domain; in lookup_domain() 70 while (net_domain_private* domain = iterator.Next()) { in dump_domains() local 71 kprintf("domain: %p, %s, %d\n", domain, domain->name, domain->family); in dump_domains() 72 kprintf(" module: %p\n", domain->module); in dump_domains() 73 kprintf(" address_module: %p\n", domain->address_module); in dump_domains() 75 if (!domain->routes.IsEmpty()) in dump_domains() 78 RouteList::Iterator routeIterator = domain->routes.GetIterator(); in dump_domains() 81 "address %p\n", route, AddressString(domain, route->destination in dump_domains() [all …]
|
H A D | routes.cpp | 106 struct net_domain_private* domain = (net_domain_private*)_domain; in find_route() local 107 RouteList::Iterator iterator = domain->routes.GetIterator(); in find_route() 125 && domain->address_module->equal_masked_addresses( in find_route() 127 && domain->address_module->equal_addresses(route->mask, in find_route() 129 && domain->address_module->equal_addresses(route->gateway, in find_route() 143 net_domain_private* domain = (net_domain_private*)_domain; in find_route() local 147 RouteList::Iterator iterator = domain->routes.GetIterator(); in find_route() 151 AddressString(domain, address).Data()); in find_route() 160 domain->address_module->mask_address(address, route->mask, in find_route() 162 if (!domain->address_module->equal_addresses(&maskedAddress, in find_route() [all …]
|
H A D | routes.h | 34 uint32 route_table_size(struct net_domain_private* domain); 35 status_t list_routes(struct net_domain_private* domain, void* buffer, 37 status_t control_routes(struct net_interface* interface, net_domain* domain, 40 status_t add_route(struct net_domain* domain, 42 status_t remove_route(struct net_domain* domain, 44 status_t get_route_information(struct net_domain* domain, void* buffer, 46 void invalidate_routes(net_domain* domain, net_interface* interface); 48 struct net_route* get_route(struct net_domain* domain, 50 status_t get_device_route(struct net_domain* domain, uint32 index, 52 status_t get_buffer_route(struct net_domain* domain, [all …]
|
H A D | interfaces.h | 36 net_domain* domain); 64 net_domain* domain); 74 net_domain* domain; member 99 return datalink->domain->family; in Hash() 104 return datalink->domain->family == key; in Compare() 125 InterfaceAddress* AddressForDestination(net_domain* domain, 127 InterfaceAddress* AddressForLocal(net_domain* domain, 138 status_t Control(net_domain* domain, int32 option, 150 net_domain* domain); 152 domain_datalink* DomainDatalink(net_domain* domain) in DomainDatalink() argument [all …]
|
H A D | interfaces.cpp | 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() [all …]
|
H A D | datalink.cpp | 44 struct net_domain_private* domain; member 131 get_interface_name_or_index(net_domain* domain, int32 option, void* value, in get_interface_name_or_index() argument 148 interface = get_interface(domain, request.ifr_name); in get_interface_name_or_index() 150 interface = get_interface(domain, request.ifr_index); in get_interface_name_or_index() 216 net_domain_private* domain = (net_domain_private*)_domain; in datalink_control() local 217 if (domain == NULL || domain->family == AF_LINK) { in datalink_control() 225 return get_interface_name_or_index(domain, option, value, _length); in datalink_control() 237 Interface* interface = get_interface(domain, request.ifra_name); in datalink_control() 240 status_t status = add_interface_address(interface, domain, in datalink_control() 254 status_t status = add_interface(request.ifra_name, domain, request, in datalink_control() [all …]
|
H A D | stack.cpp | 526 get_domain_datalink_protocols(Interface* interface, net_domain* domain) in get_domain_datalink_protocols() argument 529 domain->family)); in get_domain_datalink_protocols() 536 chain = chain::Lookup(sDatalinkProtocolChains, domain->family, in get_domain_datalink_protocols() 542 domain_datalink* datalink = interface->DomainDatalink(domain->family); in get_domain_datalink_protocols() 559 chain->infos[i])->init_protocol(interface, domain, &protocol); in get_domain_datalink_protocols() 569 protocol->domain = domain; in get_domain_datalink_protocols() 586 put_domain_datalink_protocols(Interface* interface, net_domain* domain) in put_domain_datalink_protocols() argument 589 domain->family)); in put_domain_datalink_protocols() 596 chain = chain::Lookup(sDatalinkProtocolChains, domain->family, in put_domain_datalink_protocols() 602 uninit_domain_datalink_protocols(interface->DomainDatalink(domain->family)); in put_domain_datalink_protocols() [all …]
|
/haiku/src/add-ons/kernel/bus_managers/pci/ |
H A D | pci_fixup.cpp | 25 jmicron_fixup_ahci(PCI *pci, uint8 domain, uint8 bus, uint8 device, in jmicron_fixup_ahci() argument 43 "deviceId 0x%04x\n", domain, bus, device, function, deviceId); in jmicron_fixup_ahci() 46 uint32 val = pci->ReadConfig(domain, bus, device, function, 0x40, 4); in jmicron_fixup_ahci() 71 pci->WriteConfig(domain, bus, device, function, 0x40, 4, val); in jmicron_fixup_ahci() 75 uint8 irq = pci->ReadConfig(domain, bus, device, function, 0x3c, 1); in jmicron_fixup_ahci() 78 pci->WriteConfig(domain, bus, device, 1, 0x3c, 1, irq); in jmicron_fixup_ahci() 83 intel_fixup_ahci(PCI *pci, uint8 domain, uint8 bus, uint8 device, in intel_fixup_ahci() argument 109 "deviceId 0x%04x\n", domain, bus, device, function, deviceId); in intel_fixup_ahci() 112 pci->ReadConfig(domain, bus, device, function, 0x24, 4)); in intel_fixup_ahci() 114 pci->ReadConfig(domain, bus, device, function, 0x90, 1)); in intel_fixup_ahci() [all …]
|
H A D | pci.cpp | 48 uint8 domain; in pci_read_config() local 51 if (gPCI->ResolveVirtualBus(virtualBus, &domain, &bus) != B_OK) in pci_read_config() 54 if (gPCI->ReadConfig(domain, bus, device, function, offset, size, in pci_read_config() 67 uint8 domain; in pci_write_config() local 68 if (gPCI->ResolveVirtualBus(virtualBus, &domain, &bus) != B_OK) in pci_write_config() 71 gPCI->WriteConfig(domain, bus, device, function, offset, size, value); in pci_write_config() 82 uint8 domain; in pci_ram_address() local 84 if (gPCI->LookupRange(B_IO_MEMORY, childAdr, domain, range) >= B_OK) in pci_ram_address() 97 uint8 domain; in pci_find_capability() local 98 if (gPCI->ResolveVirtualBus(virtualBus, &domain, &bus) != B_OK) in pci_find_capability() [all …]
|
H A D | pci.h | 29 uint8 domain; member 37 uint8 domain; member 88 uint8 &domain, pci_resource_range &range, uint8 **mappedAdr = NULL); 92 status_t ReadConfig(uint8 domain, uint8 bus, uint8 device, 95 uint32 ReadConfig(uint8 domain, uint8 bus, uint8 device, 100 status_t WriteConfig(uint8 domain, uint8 bus, uint8 device, 106 status_t FindCapability(uint8 domain, uint8 bus, 111 status_t FindExtendedCapability(uint8 domain, uint8 bus, 116 status_t FindHTCapability(uint8 domain, uint8 bus, 122 status_t ResolveVirtualBus(uint8 virtualBus, uint8 *domain, [all …]
|
/haiku/src/libs/util/ |
H A D | trimdomain.c | 58 static char domain[MAXHOSTNAMELEN]; in trimdomain() local 65 if (gethostname(domain, sizeof(domain) - 1) == 0 && in trimdomain() 66 (s = strchr(domain, '.')) != NULL) in trimdomain() 67 memmove(domain, s + 1, strlen(s + 1) + 1); in trimdomain() 69 domain[0] = '\0'; in trimdomain() 70 dlen = strlen(domain); in trimdomain() 73 if (domain[0] == '\0') in trimdomain() 79 if (strncasecmp(s + 1, domain, dlen) == 0) { in trimdomain()
|
/haiku/headers/private/net/ |
H A D | net_datalink.h | 36 struct net_domain* domain; member 73 status_t (*control)(net_domain* domain, int32 option, void* value, 77 net_domain* domain, net_buffer* buffer); 79 bool (*is_local_address)(net_domain* domain, 83 bool (*is_local_link_address)(net_domain* domain, 87 net_interface* (*get_interface)(net_domain* domain, uint32 index); 99 net_domain* domain, const struct sockaddr* address); 101 net_domain* domain, const struct sockaddr* address); 104 status_t (*add_route)(net_domain* domain, const net_route* route); 105 status_t (*remove_route)(net_domain* domain, const net_route* route); [all …]
|
H A D | NetUtilities.h | 103 AddressString(net_domain* domain, const sockaddr* address, 108 domain->address_module->print_address(address, &fBuffer, printPort); in fBuffer() 111 AddressString(net_domain* domain, const sockaddr& address, 116 domain->address_module->print_address(&address, &fBuffer, printPort); in fBuffer()
|
/haiku/src/kits/network/libnetservices/ |
H A D | UrlContext.cpp | 67 BString domain = url.Host(); in AddAuthentication() local 68 domain += url.Path(); in AddAuthentication() 69 BPrivate::HashString hostHash(domain.String(), domain.Length()); in AddAuthentication() 118 BString domain = url.Host(); in GetAuthentication() local 119 domain += url.Path(); in GetAuthentication() 124 authentication = fAuthenticationMap->Get( HashString(domain.String(), in GetAuthentication() 125 domain.Length())); in GetAuthentication() 127 domain.Truncate(domain.FindLast('/')); in GetAuthentication()
|
H A D | NetworkCookie.cpp | 249 BNetworkCookie::SetDomain(const BString& domain) in SetDomain() argument 252 BString newDomain = domain; in SetDomain() 476 BNetworkCookie::IsValidForDomain(const BString& domain) const in IsValidForDomain() 481 int32 difference = domain.Length() - cookieDomain.Length(); in IsValidForDomain() 489 return domain == cookieDomain; in IsValidForDomain() 495 const char* suffix = domain.String() + difference; in IsValidForDomain() 497 || domain[difference - 1] == '.')); in IsValidForDomain() 529 BNetworkCookie::_CanBeSetFromDomain(const BString& domain) const in _CanBeSetFromDomain() 534 int32 difference = domain.Length() - cookieDomain.Length(); in _CanBeSetFromDomain() 538 return (strcmp(suffix, domain.String()) == 0 && (difference == 0 in _CanBeSetFromDomain() [all …]
|
/haiku/src/add-ons/kernel/drivers/disk/nvme/libnvme/ |
H A D | nvme.c | 76 char *domain = NULL, *bus = NULL, *dev = NULL, *func = NULL, *end = NULL; in nvme_pci_ctrlr_probe() local 100 domain = NULL; in nvme_pci_ctrlr_probe() 103 domain = pciid; in nvme_pci_ctrlr_probe() 114 if (domain) { in nvme_pci_ctrlr_probe() 115 slot.domain = (uint32_t)strtoul(domain, &end, 16); in nvme_pci_ctrlr_probe() 116 if ((end && *end) || (slot.domain > 0xffff)) { in nvme_pci_ctrlr_probe() 117 nvme_err("Invalid domain number: 0x%X\n", slot.domain); in nvme_pci_ctrlr_probe() 121 slot.domain = PCI_MATCH_ANY; in nvme_pci_ctrlr_probe() 143 slot.domain, slot.bus, slot.dev, slot.func); in nvme_pci_ctrlr_probe() 147 slot.domain = pci_dev->domain; in nvme_pci_ctrlr_probe() [all …]
|
/haiku/src/tests/system/network/ |
H A D | unix_recv_test.c | 8 int domain; in main() local 9 domain = AF_UNIX; in main() 11 printf("Domain: %i\n", domain); in main() 12 int ret = socketpair(domain, SOCK_DGRAM, 0, fds); // try also: SOCK_STREAM in main()
|
H A D | unix_send_test.c | 9 int domain; in main() local 10 domain = AF_UNIX; in main() 12 printf("Domain: %i\n", domain); in main() 13 int ret = socketpair(domain, SOCK_DGRAM, 0, fds); // try also: SOCK_STREAM in main()
|
/haiku/src/system/libnetwork/netresolv/resolv/ |
H A D | res_query.c | 216 const char *cp, * const *domain; in res_nsearch() local 263 for (domain = (const char * const *)statp->dnsrch; in res_nsearch() 264 *domain && !done; in res_nsearch() 265 domain++) { in res_nsearch() 268 if (domain[0][0] == '\0' || in res_nsearch() 269 (domain[0][0] == '.' && domain[0][1] == '\0')) in res_nsearch() 272 ret = res_nquerydomain(statp, name, *domain, in res_nsearch() 358 const char *domain, in res_nquerydomain() argument 370 name, domain?domain:"<Nil>", class, type); in res_nquerydomain() 372 if (domain == NULL) { in res_nquerydomain() [all …]
|
/haiku/src/add-ons/kernel/network/protocols/icmp/ |
H A D | icmp.cpp | 111 net_domain* domain; in get_domain() local 113 domain = buffer->interface_address->domain; in get_domain() 115 domain = sStackModule->get_domain(buffer->source->sa_family); in get_domain() 117 if (domain == NULL || domain->module == NULL) in get_domain() 120 return domain; in get_domain() 414 net_domain* domain = get_domain(buffer); in icmp_receive_data() local 415 if (domain == NULL) in icmp_receive_data() 439 net_domain* domain = get_domain(buffer); in icmp_receive_data() local 440 if (domain == NULL) in icmp_receive_data() 446 if (!domain->address_module->equal_addresses( in icmp_receive_data() [all …]
|
/haiku/src/add-ons/kernel/network/protocols/icmp6/ |
H A D | icmp6.cpp | 205 net_domain* domain; in get_domain() local 207 domain = buffer->interface_address->domain; in get_domain() 209 domain = sStackModule->get_domain(buffer->source->sa_family); in get_domain() 211 if (domain == NULL || domain->module == NULL) in get_domain() 214 return domain; in get_domain() 224 net_domain* domain = get_domain(buffer); in icmp6_receive_data() local 225 if (domain == NULL) in icmp6_receive_data() 237 net_address_module_info* addressModule = domain->address_module; in icmp6_receive_data() 253 if (!domain->address_module->equal_addresses( in icmp6_receive_data() 276 status_t status = domain->module->send_data(NULL, reply); in icmp6_receive_data()
|
/haiku/src/apps/debuganalyzer/gui/chart/ |
H A D | LineChartRenderer.cpp | 32 bool UpdateSamples(const ChartDataRange& domain, 57 LineChartRenderer::DataSourceInfo::UpdateSamples(const ChartDataRange& domain, in UpdateSamples() argument 76 source->GetSamples(domain.min, domain.max, samples, sampleCount); in UpdateSamples() 140 LineChartRenderer::SetDomain(const ChartDataRange& domain) in SetDomain() argument 142 if (domain != fDomain) { in SetDomain() 143 fDomain = domain; in SetDomain()
|
H A D | Chart.cpp | 191 Chart::SetDisplayDomain(ChartDataRange domain) in SetDisplayDomain() argument 194 if (domain.IsValid() && domain.Size() < fDomain.Size()) { in SetDisplayDomain() 195 if (domain.min < fDomain.min) in SetDisplayDomain() 196 domain.OffsetTo(fDomain.min); in SetDisplayDomain() 197 else if (domain.max > fDomain.max) in SetDisplayDomain() 198 domain.OffsetBy(fDomain.max - domain.max); in SetDisplayDomain() 200 domain = fDomain; in SetDisplayDomain() 202 if (domain == fDisplayDomain) in SetDisplayDomain() 205 fDisplayDomain = domain; in SetDisplayDomain()
|
/haiku/src/apps/webpositive/ |
H A D | CookieWindow.cpp | 172 BString domain = item->Text(); in MessageReceived() local 173 _ShowCookiesForDomain(domain); in MessageReceived() 284 CookieWindow::_AddDomain(BString domain, bool fake) in _AddDomain() argument 287 int firstDot = domain.FindFirst('.'); in _AddDomain() 289 BString parentDomain(domain); in _AddDomain() 301 if (stringItem->Text() == domain) { in _AddDomain() 319 BStringItem* domainItem = new DomainItem(domain, fake); in _AddDomain() 346 CookieWindow::_ShowCookiesForDomain(BString domain) in _ShowCookiesForDomain() argument 349 label.SetToFormat(B_TRANSLATE("Cookies for %s"), domain.String()); in _ShowCookiesForDomain() 362 if (cookie->Domain() == domain) in _ShowCookiesForDomain() [all …]
|
/haiku/src/tests/kits/net/cookie/ |
H A D | cookie_test.cpp | 43 int16 domain = (rand() % domainNumber); in stressTest() local 49 c.SetDomain(domains[domain]); in stressTest() 57 int16 domain = (rand() % domainNumber); in stressTest() local 59 host << domains[domain] << "/"; in stressTest()
|