Lines Matching refs:ifname

39 	char ifname[IFNAMSIZ + 1];  member
49 static void dyn_iface_get(struct hostapd_data *hapd, const char *ifname, in dyn_iface_get() argument
59 if (os_strcmp(ifname, next->ifname) == 0) in dyn_iface_get()
75 os_strlcpy(next->ifname, ifname, sizeof(next->ifname)); in dyn_iface_get()
86 static int dyn_iface_put(struct hostapd_data *hapd, const char *ifname) in dyn_iface_put() argument
96 if (os_strcmp(ifname, next->ifname) == 0) in dyn_iface_put()
419 void vlan_newlink(const char *ifname, struct hostapd_data *hapd) in vlan_newlink() argument
425 wpa_printf(MSG_DEBUG, "VLAN: vlan_newlink(%s)", ifname); in vlan_newlink()
429 os_strcmp(ifname, vlan->ifname) != 0) in vlan_newlink()
445 !br_addif(hapd->conf->bridge, ifname)) in vlan_newlink()
452 if (!br_addif(br_name, ifname)) in vlan_newlink()
464 ifname, br_name, tagged[i], hapd); in vlan_newlink()
467 ifconfig_up(ifname); in vlan_newlink()
515 void vlan_dellink(const char *ifname, struct hostapd_data *hapd) in vlan_dellink() argument
519 wpa_printf(MSG_DEBUG, "VLAN: vlan_dellink(%s)", ifname); in vlan_dellink()
524 if (os_strcmp(ifname, vlan->ifname) != 0) { in vlan_dellink()
548 ifname, br_name, tagged[i], hapd); in vlan_dellink()
556 br_delif(hapd->conf->bridge, ifname); in vlan_dellink()
561 br_delif(br_name, vlan->ifname); in vlan_dellink()
571 if (if_nametoindex(vlan->ifname) && vlan_if_remove(hapd, vlan)) in vlan_dellink()
574 vlan->ifname, strerror(errno)); in vlan_dellink()
592 char ifname[IFNAMSIZ + 1]; in vlan_read_ifnames() local
607 os_memset(ifname, 0, sizeof(ifname)); in vlan_read_ifnames()
615 if ((size_t) n >= sizeof(ifname)) in vlan_read_ifnames()
616 n = sizeof(ifname) - 1; in vlan_read_ifnames()
617 os_memcpy(ifname, ((char *) attr) + rta_len, n); in vlan_read_ifnames()
624 if (!ifname[0]) in vlan_read_ifnames()
626 if (del && if_nametoindex(ifname)) { in vlan_read_ifnames()
635 ifi->ifi_index, ifname, ifi->ifi_family, ifi->ifi_flags, in vlan_read_ifnames()
642 vlan_dellink(ifname, hapd); in vlan_read_ifnames()
644 vlan_newlink(ifname, hapd); in vlan_read_ifnames()