Searched refs:iflr (Results 1 – 1 of 1) sorted by relevance
344 struct if_laddrreq iflr; in discover_interfaces() local350 memset(&iflr, 0, sizeof(iflr)); in discover_interfaces()443 strlcpy(iflr.iflr_name, ifp->name, in discover_interfaces()444 sizeof(iflr.iflr_name)); in discover_interfaces()445 memcpy(&iflr.addr, ifa->ifa_addr, in discover_interfaces()446 MIN(ifa->ifa_addr->sa_len, sizeof(iflr.addr))); in discover_interfaces()447 iflr.flags = IFLR_PREFIX; in discover_interfaces()448 iflr.prefixlen = sdl->sdl_alen * NBBY; in discover_interfaces()449 if (ioctl(socket_aflink, SIOCGLIFADDR, &iflr) == -1 || in discover_interfaces()450 !(iflr.flags & IFLR_ACTIVE)) in discover_interfaces()