Lines Matching refs:address

63 		CODE(SIOCSIFADDR)		/* set interface address */
64 CODE(SIOCGIFADDR) /* get interface address */
65 CODE(SIOCSIFDSTADDR) /* set point-to-point address */
66 CODE(SIOCGIFDSTADDR) /* get point-to-point address */
69 CODE(SIOCGIFBRDADDR) /* get broadcast address */
70 CODE(SIOCSIFBRDADDR) /* set broadcast address */
75 CODE(SIOCGIFNETMASK) /* get net address mask */
76 CODE(SIOCSIFNETMASK) /* set net address mask */
79 CODE(SIOCDIFADDR) /* delete interface address */
81 CODE(SIOCADDMULTI) /* add multicast address */
82 CODE(SIOCDELMULTI) /* delete multicast address */
168 set_interface_address(net_interface_address*& target, InterfaceAddress* address)
173 target = address;
181 // Copy address over
185 // Fill in empty address
232 // add new interface address
266 // remove interface (address)
367 InterfaceAddress* address = (InterfaceAddress*)route->interface_address;
368 Interface* interface = (Interface*)address->interface;
380 // We set the interface address here, so the buffer is delivered
382 address->AcquireReference();
383 set_interface_address(buffer->interface_address, address);
389 // We set the interface address here, so the buffer is delivered
391 address->AcquireReference();
392 set_interface_address(buffer->interface_address, address);
409 // This route involves a gateway, we need to use the gateway address
410 // instead of the destination address:
418 = interface->DomainDatalink(address->domain->family);
463 /*! Tests if \a address is a local address in the domain.
465 \param _interfaceAddress will be set to the interface address belonging to
466 that address if non-NULL. If the address \a _interfaceAddress points to
467 is not NULL, it is assumed that it already points to an address, which
468 is then released before the new address is assigned.
472 datalink_is_local_address(net_domain* domain, const struct sockaddr* address,
475 TRACE("%s(domain %p, address %s)\n", __FUNCTION__, domain,
476 AddressString(domain, address).Data());
478 if (domain == NULL || address == NULL
479 || domain->family != address->sa_family)
484 InterfaceAddress* interfaceAddress = get_interface_address(address);
486 // Check for matching broadcast address
490 = get_interface_address_for_destination(domain, address);
499 TRACE(" it is, interface address %p\n", interfaceAddress);
513 /*! Tests if \a address is a local link address in the domain.
516 \param _interfaceAddress will be set to the first address of the interface
517 and domain belonging to that address if non-NULL. If the address
519 already points to an address, which is then released before the new
520 address is assigned.
524 const struct sockaddr* address, net_interface_address** _interfaceAddress)
526 if (domain == NULL || address == NULL || address->sa_family != AF_LINK)
530 uint8* data = LLADDR((sockaddr_dl*)address);
531 TRACE("%s(domain %p, unconfiguredOnly %d, address %02x:%02x:%02x:%02x:%02x"
537 address, unconfiguredOnly);
560 datalink_get_interface_with_address(const sockaddr* address)
562 InterfaceAddress* interfaceAddress = get_interface_address(address);
586 datalink_get_interface_address(const struct sockaddr* address)
588 return get_interface_address(address);
592 /*! Returns a reference to the next address of the given interface in
594 point to a NULL address. Upon the next call, the reference to the previous
595 address is taken over again.
598 the reference to the address where you stopped.
600 \param interface The interface whose address list should be iterated over.
601 \param _address A pointer to the location where the next address should
604 \return \c true if an address reference was returned, \c false if not.
612 InterfaceAddress* address = (InterfaceAddress*)*_address;
613 bool gotOne = interface->GetNextAddress(&address);
614 *_address = address;
621 datalink_put_interface_address(net_interface_address* address)
623 if (address == NULL)
626 ((InterfaceAddress*)address)->ReleaseReference();
632 const struct sockaddr* address)
638 address);
644 const struct sockaddr* address)
650 address);
755 TRACE("%s(%p, interface address %p, option %s, old %p, new %p)\n",
832 InterfaceAddress* address = NULL;
836 // Find first address that matches the local address
837 address = interface->AddressForLocal(protocol->domain,
840 // Find first address for family
841 address = interface->FirstForFamily(
845 request.ifra_index = interface->IndexOfAddress(address);
847 address = interface->AddressAt(request.ifra_index);
848 if (address == NULL)
856 // Copy address info
858 status = fill_address(address->local,
863 status = fill_address(address->mask,
868 status = fill_address(address->destination,
874 address->ReleaseReference();
1001 const sockaddr* address)
1005 return protocol->device_module->add_multicast(protocol->device, address);
1011 const sockaddr* address)
1016 address);