Lines Matching refs:interface

63 		CODE(SIOCSIFADDR)		/* set interface address */
64 CODE(SIOCGIFADDR) /* get interface address */
67 CODE(SIOCSIFFLAGS) /* set interface flags */
68 CODE(SIOCGIFFLAGS) /* get interface flags */
72 CODE(SIOCGIFCONF) /* get interface list */
73 CODE(SIOCGIFINDEX) /* interface name -> index */
74 CODE(SIOCGIFNAME) /* interface index -> name */
77 CODE(SIOCGIFMETRIC) /* get interface metric */
78 CODE(SIOCSIFMETRIC) /* set interface metric */
79 CODE(SIOCDIFADDR) /* delete interface address */
80 CODE(SIOCAIFADDR) /* configure interface alias */
83 CODE(SIOCGIFMTU) /* get interface MTU */
84 CODE(SIOCSIFMTU) /* set interface MTU */
92 CODE(SIOCGIFSTATS) /* get interface stats */
93 CODE(SIOCGIFTYPE) /* get interface type */
95 CODE(SIOCSPACKETCAP) /* Start capturing packets on an interface */
96 CODE(SIOCCPACKETCAP) /* Stop capturing packets on an interface */
114 CODE(B_SOCKET_SET_ALIAS) /* set interface alias, ifaliasreq */
115 CODE(B_SOCKET_GET_ALIAS) /* get interface alias, ifaliasreq */
116 CODE(B_SOCKET_COUNT_ALIASES) /* count interface aliases */
146 Interface* interface = NULL;
148 interface = get_interface(domain, request.ifr_name);
150 interface = get_interface(domain, request.ifr_index);
152 if (interface == NULL)
156 request.ifr_index = interface->index;
158 strlcpy(request.ifr_name, interface->name, IF_NAMESIZE);
161 interface->ReleaseReference();
232 // add new interface address
240 Interface* interface = get_interface(domain, request.ifra_name);
241 if (interface != NULL) {
242 // A new alias is added to this interface
243 status_t status = add_interface_address(interface, domain,
245 notify_interface_changed(interface);
246 interface->ReleaseReference();
251 // A new interface needs to be added
266 // remove interface (address)
271 Interface* interface = get_interface(domain, request.ifr_name);
272 if (interface == NULL)
279 status = interface->Control(domain, SIOCDIFADDR, request,
282 remove_interface(interface);
284 interface->ReleaseReference();
342 // try to pass the request to an existing interface
347 Interface* interface = get_interface(domain, request.ifr_name);
348 if (interface == NULL)
351 status_t status = interface->Control(domain, option, request,
354 interface->ReleaseReference();
368 Interface* interface = (Interface*)address->interface;
370 //dprintf("send buffer (%ld bytes) to interface %s (route flags %lx)\n",
371 // buffer->size, interface->name, route->flags);
380 // We set the interface address here, so the buffer is delivered
389 // We set the interface address here, so the buffer is delivered
394 if (atomic_get(&interface->DeviceInterface()->monitor_count) > 0)
395 device_interface_monitor_receive(interface->DeviceInterface(), buffer);
400 &interface->DeviceInterface()->receive_queue, buffer);
401 update_device_send_stats(interface->DeviceInterface()->device,
418 = interface->DomainDatalink(address->domain->family);
465 \param _interfaceAddress will be set to the interface address belonging to
499 TRACE(" it is, interface address %p\n", interfaceAddress);
516 \param _interfaceAddress will be set to the first address of the interface
566 Interface* interface = static_cast<Interface*>(interfaceAddress->interface);
568 interface->AcquireReference();
571 return interface;
576 datalink_put_interface(net_interface* interface)
578 if (interface == NULL)
581 ((Interface*)interface)->ReleaseReference();
592 /*! Returns a reference to the next address of the given interface in
600 \param interface The interface whose address list should be iterated over.
610 Interface* interface = (Interface*)_interface;
613 bool gotOne = interface->GetNextAddress(&address);
634 Interface* interface = (Interface*)_interface;
635 domain_datalink* datalink = interface->DomainDatalink(domain->family);
646 Interface* interface = (Interface*)_interface;
647 domain_datalink* datalink = interface->DomainDatalink(domain->family);
672 interface_protocol_init(net_interface* interface, net_domain* domain,
679 TRACE("%s(%p, interface %p - %s, domain %p)\n", __FUNCTION__, protocol,
680 interface, interface->name, domain);
682 protocol->device_module = interface->device->module;
683 protocol->device = interface->device;
707 Interface* interface = (Interface*)protocol->interface;
709 if (atomic_get(&interface->DeviceInterface()->monitor_count) > 0)
710 device_interface_monitor_receive(interface->DeviceInterface(), buffer);
733 Interface* interface = (Interface*)protocol->interface;
734 net_device_interface* deviceInterface = interface->DeviceInterface();
741 interface->WentDown();
755 TRACE("%s(%p, interface address %p, option %s, old %p, new %p)\n",
781 Interface* interface = (Interface*)protocol->interface;
802 = interface->FirstForFamily(protocol->domain->family);
820 request.ifr_count = interface->CountAddresses();
837 address = interface->AddressForLocal(protocol->domain,
841 address = interface->FirstForFamily(
845 request.ifra_index = interface->IndexOfAddress(address);
847 address = interface->AddressAt(request.ifra_index);
883 request.ifr_flags = interface->flags | interface->device->flags;
893 &interface->DeviceInterface()->device->stats,
901 request.ifr_type = interface->type;
911 request.ifr_mtu = interface->device->mtu;
923 status_t status = interface->device->module->set_mtu(
924 interface->device, request.ifr_mtu);
926 notify_interface_changed(interface);
938 = interface->device->module->set_media(
939 interface->device, request.ifr_media);
945 status = interface->device->module->control(
946 interface->device, SIOCSIFMEDIA, &request, sizeof(request));
962 request.ifr_media = interface->device->media;
970 request.ifr_metric = interface->metric;
982 interface->metric = request.ifr_metric;
983 notify_interface_changed(interface);
989 // interface related route options
990 return control_routes(interface, protocol->domain, option, argument,