• Home
  • Raw
  • Download

Lines Matching refs:ifname

40 	char ifname[IFNAMSIZ + 1];  member
50 static void dyn_iface_get(struct hostapd_data *hapd, const char *ifname, in dyn_iface_get() argument
60 if (os_strcmp(ifname, next->ifname) == 0) in dyn_iface_get()
76 os_strlcpy(next->ifname, ifname, sizeof(next->ifname)); in dyn_iface_get()
87 static int dyn_iface_put(struct hostapd_data *hapd, const char *ifname) in dyn_iface_put() argument
97 if (os_strcmp(ifname, next->ifname) == 0) in dyn_iface_put()
461 void vlan_newlink(const char *ifname, struct hostapd_data *hapd) in vlan_newlink() argument
467 wpa_printf(MSG_DEBUG, "VLAN: vlan_newlink(%s)", ifname); in vlan_newlink()
471 os_strcmp(ifname, vlan->ifname) != 0) in vlan_newlink()
487 !br_addif(hapd->conf->bridge, ifname)) in vlan_newlink()
494 if (!br_addif(br_name, ifname)) in vlan_newlink()
506 ifname, br_name, tagged[i], hapd); in vlan_newlink()
509 ifconfig_up(ifname); in vlan_newlink()
564 void vlan_dellink(const char *ifname, struct hostapd_data *hapd) in vlan_dellink() argument
568 wpa_printf(MSG_DEBUG, "VLAN: vlan_dellink(%s)", ifname); in vlan_dellink()
573 if (os_strcmp(ifname, vlan->ifname) != 0) { in vlan_dellink()
597 ifname, br_name, tagged[i], hapd); in vlan_dellink()
605 br_delif(hapd->conf->bridge, ifname); in vlan_dellink()
610 br_delif(br_name, vlan->ifname); in vlan_dellink()
620 if (if_nametoindex(vlan->ifname) && vlan_if_remove(hapd, vlan)) in vlan_dellink()
623 vlan->ifname, strerror(errno)); in vlan_dellink()
641 char ifname[IFNAMSIZ + 1]; in vlan_read_ifnames() local
656 os_memset(ifname, 0, sizeof(ifname)); in vlan_read_ifnames()
664 if ((size_t) n >= sizeof(ifname)) in vlan_read_ifnames()
665 n = sizeof(ifname) - 1; in vlan_read_ifnames()
666 os_memcpy(ifname, ((char *) attr) + rta_len, n); in vlan_read_ifnames()
673 if (!ifname[0]) in vlan_read_ifnames()
675 if (del && if_nametoindex(ifname)) { in vlan_read_ifnames()
684 ifi->ifi_index, ifname, ifi->ifi_family, ifi->ifi_flags, in vlan_read_ifnames()
691 vlan_dellink(ifname, hapd); in vlan_read_ifnames()
693 vlan_newlink(ifname, hapd); in vlan_read_ifnames()