Lines Matching refs:ifname
54 char ifname[IFNAMSIZ + 1];
227 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name));
253 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name));
295 os_strlcpy(ifr.ifr_ifrn.ifrn_name, drv->ifname, IFNAMSIZ);
366 os_strlcpy(drv->ifname, params->ifname, sizeof(drv->ifname));
415 static int wpa_driver_wired_get_ifflags(const char *ifname, int *flags)
427 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ);
439 static int wpa_driver_wired_set_ifflags(const char *ifname, int flags)
451 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ);
463 static int wpa_driver_wired_multi(const char *ifname, const u8 *addr, int add)
479 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ);
517 static void * wpa_driver_wired_init(void *ctx, const char *ifname)
525 os_strlcpy(drv->ifname, ifname, sizeof(drv->ifname));
536 if (wpa_driver_wired_get_ifflags(ifname, &flags) == 0 &&
538 wpa_driver_wired_set_ifflags(ifname, flags | IFF_UP) == 0) {
543 if_nametoindex(drv->ifname),
548 } else if (wpa_driver_wired_multi(ifname, pae_group_addr, 1) == 0) {
552 } else if (wpa_driver_wired_get_ifflags(ifname, &flags) < 0) {
560 } else if (wpa_driver_wired_set_ifflags(ifname,
583 if_nametoindex(drv->ifname),
590 wpa_driver_wired_multi(drv->ifname, pae_group_addr, 0) < 0) {
596 (wpa_driver_wired_get_ifflags(drv->ifname, &flags) < 0 ||
597 wpa_driver_wired_set_ifflags(drv->ifname,
604 wpa_driver_wired_get_ifflags(drv->ifname, &flags) == 0 &&
606 wpa_driver_wired_set_ifflags(drv->ifname, flags & ~IFF_UP) < 0) {