Searched refs:lifn (Results 1 – 3 of 3) sorted by relevance
53 struct lifnum lifn; in test_SIOCGLIFCONF() local54 lifn.lifn_family = AF_INET; in test_SIOCGLIFCONF()55 lifn.lifn_flags = 0; in test_SIOCGLIFCONF()56 if (ioctl(fd, SIOCGLIFNUM, &lifn) < 0) in test_SIOCGLIFCONF()62 lifc.lifc_len = (lifn.lifn_count + 1) * sizeof(struct lifreq); in test_SIOCGLIFCONF()63 lifc.lifc_buf = malloc((lifn.lifn_count + 1) * sizeof(struct lifreq)); in test_SIOCGLIFCONF()76 if (strcmp(lifc.lifc_req[lifn.lifn_count].lifr_name, "") != 0) in test_SIOCGLIFCONF()
436 struct lifnum lifn; in sys_ioctl_SIOCGLIFNUM() local438 lifn.lifn_family = x0; in sys_ioctl_SIOCGLIFNUM()439 lifn.lifn_flags = x0; in sys_ioctl_SIOCGLIFNUM()442 SY(SYS_ioctl, x0 - 1, x0 + SIOCGLIFNUM, &lifn + x0); FAIL; in sys_ioctl_SIOCGLIFNUM()
292 struct lifnum lifn; in get_first_ethernet() local308 lifn.lifn_family = AF_UNSPEC; in get_first_ethernet()309 lifn.lifn_flags = LIFC_NOXMIT; in get_first_ethernet()310 if (ioctl(fd, SIOCGLIFNUM, &lifn) < 0) { in get_first_ethernet()316 num_ifs = lifn.lifn_count; in get_first_ethernet()