Lines Matching refs:address

185 	// take the last 32 bits of the destination IPv6 address,
186 // prepend 33-33- and use that as the destination Ethernet address.
203 ipv6_to_sockaddr(sockaddr_in6* target, const in6_addr& address)
210 memcpy(target->sin6_addr.s6_addr, address.s6_addr, sizeof(in6_addr));
216 ipv6_to_solicited_multicast(sockaddr_in6* target, const in6_addr& address)
218 // The solicited-node multicast address for a given unicast address
219 // is constructed by taking the last three octets of the unicast address
234 memcpy(&targetIPv6[13], &address.s6_addr[13], 3);
282 ndp_entry::Lookup(const in6_addr& address)
284 return sCache->Lookup(address);
454 // but to a different address (only for those that belong to a
455 // specific address - redefining INADDR_ANY is always allowed).
457 // time) to let us switch to the new address.
462 // TODO: also printf the address
463 dprintf("NDP host updated with different hardware address "
512 // leave the NS multicast address
526 // TRACE(("%s(): address %s\n", __FUNCTION__, inet6_to_string(inetAddress)));
537 // find new local sender address
540 net_interface_address* address = NULL;
542 &address)) {
543 if (address->local == NULL || address->local->sa_family != AF_INET6)
547 &((sockaddr_in6*)address->local)->sin6_addr, sizeof(in6_addr));
562 net_interface_address* address = NULL;
564 &address)) {
565 if (address->local == NULL || address->local->sa_family != AF_INET6)
568 ndp_remove_local_entry(protocol, address->local, false);
589 // join multicast address for listening to NS packets
603 // TRACE(("%s(): address %s\n", __FUNCTION__, inet6_to_string(inetAddress)));
608 sockaddr_dl address;
609 address.sdl_len = sizeof(sockaddr_dl);
610 address.sdl_family = AF_LINK;
611 address.sdl_type = IFT_ETHER;
612 address.sdl_e_type = htons(ETHER_TYPE_IPV6);
613 address.sdl_nlen = 0;
614 address.sdl_slen = 0;
615 address.sdl_alen = interface->device->address.length;
616 memcpy(LLADDR(&address), interface->device->address.data, address.sdl_alen);
618 memcpy(&protocol->hardware_address, &address, sizeof(sockaddr_dl));
619 // cache the address in our protocol
622 status_t status = ndp_update_entry(inetAddress, &address,
642 net_interface_address* address = NULL;
644 &address)) {
645 if (address->local == NULL || address->local->sa_family != AF_INET6)
648 if (ndp_set_local_entry(protocol, address->local) == B_OK) {
677 // remember the address of the sender as we might need it later
716 // fix source and destination address
829 // though, so that we won't try to request the same address again
883 // we're trying to resolve the address, so keep sending requests
897 ndp_start_resolve(ipv6_datalink_protocol* protocol, const in6_addr& address,
903 ndp_entry* entry = ndp_entry::Add(address, NULL, 0);
932 ipv6_to_solicited_multicast(destination, address);
942 memcpy(&header->target_address, &address, sizeof(in6_addr));
945 memcpy(&header->link_address, device->address.data, ETHER_ADDRESS_LENGTH);
1075 // cache this device's address for later use
1099 net_interface_address* address, int32 option,
1109 // Update NDP entry for the local address
1128 sDatalinkModule->add_route(address->domain, &route);
1146 sDatalinkModule->remove_route(address->domain, &route);
1155 return protocol->next->module->change_address(protocol->next, address,
1171 const sockaddr* address)
1173 if (address->sa_family != AF_INET6)
1177 ipv6_to_ether_multicast(&multicastAddress, (const sockaddr_in6*)address);
1186 const sockaddr* address)
1188 if (address->sa_family != AF_INET6)
1192 ipv6_to_ether_multicast(&multicastAddress, (const sockaddr_in6*)address);