Lines Matching refs:hw
64 AvahiHwInterface *hw;
72 if (!(hw = avahi_interface_monitor_get_hw_interface(m, (AvahiIfIndex) ifm->ifm_index)))
74 avahi_hw_interface_free(hw, 0);
78 if (!(hw = avahi_interface_monitor_get_hw_interface(m, ifm->ifm_index)))
79 if (!(hw = avahi_hw_interface_new(m, (AvahiIfIndex) ifm->ifm_index)))
82 hw->flags_ok =
89 avahi_free(hw->name);
90 hw->name = avahi_strndup(sdl->sdl_data, sdl->sdl_nlen);
92 hw->mtu = ifm->ifm_data.ifi_mtu;
94 hw->mac_address_size = sdl->sdl_alen;
95 if (hw->mac_address_size > AVAHI_MAC_ADDRESS_MAX)
96 hw->mac_address_size = AVAHI_MAC_ADDRESS_MAX;
98 memcpy(hw->mac_address, sdl->sdl_data + sdl->sdl_nlen, hw->mac_address_size);
103 /* hw->name, hw->index, */
104 /* hw->mtu, */
105 /* avahi_format_mac_address(mac, sizeof(mac), hw->mac_address, hw->mac_address_size), */
106 /* hw->flags_ok); */
109 avahi_hw_interface_check_relevant(hw);
110 avahi_hw_interface_update_rrs(hw, 0);
373 AvahiHwInterface *hw;
425 if (!(hw = avahi_interface_monitor_get_hw_interface(m, (AvahiIfIndex) index))) {
426 if (!(hw = avahi_hw_interface_new(m, (AvahiIfIndex) index)))
429 hw->flags_ok =
435 hw->name = avahi_strdup(lifreq->lifr_name);
436 hw->mtu = mtu;
449 avahi_hw_interface_check_relevant(hw);
450 avahi_hw_interface_update_rrs(hw, 0);