Home
last modified time | relevance | path

Searched refs:lifn (Results 1 – 3 of 3) sorted by relevance

/external/valgrind/memcheck/tests/solaris/
Dioctl.c53 struct lifnum lifn; in test_SIOCGLIFCONF() local
54 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()
Dscalar_ioctl.c436 struct lifnum lifn; in sys_ioctl_SIOCGLIFNUM() local
438 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()
/external/ppp/pppd/
Dsys-solaris.c292 struct lifnum lifn; in get_first_ethernet() local
308 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()