Home
last modified time | relevance | path

Searched refs:ifmr (Results 1 – 2 of 2) sorted by relevance

/external/dhcpcd/
Dnet.c271 struct ifmediareq ifmr; in carrier_status() local
291 memset(&ifmr, 0, sizeof(ifmr)); in carrier_status()
292 strlcpy(ifmr.ifm_name, iface->name, sizeof(ifmr.ifm_name)); in carrier_status()
293 if (ioctl(socket_afnet, SIOCGIFMEDIA, &ifmr) != -1 && in carrier_status()
294 ifmr.ifm_status & IFM_AVALID) in carrier_status()
295 ret = (ifmr.ifm_status & IFM_ACTIVE) ? 1 : 0; in carrier_status()
/external/wpa_supplicant_8/src/drivers/
Ddriver_bsd.c176 struct ifmediareq ifmr; in bsd_get_if_media() local
178 os_memset(&ifmr, 0, sizeof(ifmr)); in bsd_get_if_media()
179 os_strlcpy(ifmr.ifm_name, drv->ifname, sizeof(ifmr.ifm_name)); in bsd_get_if_media()
181 if (ioctl(drv->sock, SIOCGIFMEDIA, &ifmr) < 0) { in bsd_get_if_media()
187 return ifmr.ifm_current; in bsd_get_if_media()