Lines Matching refs:ifname
34 vlan->ifname); in vlan_if_add()
39 if (!iface_exists(vlan->ifname)) in vlan_if_add()
40 ret = hostapd_vlan_if_add(hapd, vlan->ifname); in vlan_if_add()
49 ifconfig_up(vlan->ifname); /* else wpa group will fail fatal */ in vlan_if_add()
60 wpa_printf(MSG_ERROR, "WPA deinit of %s failed", vlan->ifname); in vlan_if_add()
63 if (hostapd_vlan_if_remove(hapd, vlan->ifname)) in vlan_if_add()
64 wpa_printf(MSG_ERROR, "Removal of %s failed", vlan->ifname); in vlan_if_add()
80 return hostapd_vlan_if_remove(hapd, vlan->ifname); in vlan_if_remove()
92 vlan->ifname, strerror(errno)); in vlan_dynamic_add()
96 vlan_newlink(vlan->ifname, hapd); in vlan_dynamic_add()
118 vlan_dellink(vlan->ifname, hapd); in vlan_dynamic_remove()
124 vlan->ifname, strerror(errno)); in vlan_dynamic_remove()
154 ret = os_snprintf(vlan->ifname, sizeof(vlan->ifname), "%s.#", in vlan_init()
156 if (ret >= (int) sizeof(vlan->ifname)) { in vlan_init()
159 vlan->ifname); in vlan_init()
192 char ifname[IFNAMSIZ + 1], *pos; in vlan_add_dynamic() local
199 __func__, vlan_id, vlan->ifname); in vlan_add_dynamic()
200 os_strlcpy(ifname, vlan->ifname, sizeof(ifname)); in vlan_add_dynamic()
201 pos = os_strchr(ifname, '#'); in vlan_add_dynamic()
215 ret = os_snprintf(n->ifname, sizeof(n->ifname), "%s%d%s", in vlan_add_dynamic()
216 ifname, vlan_id, pos); in vlan_add_dynamic()
217 if (os_snprintf_error(sizeof(n->ifname), ret)) { in vlan_add_dynamic()
262 vlan_dellink(vlan->ifname, hapd); in vlan_remove_dynamic()