Home
last modified time | relevance | path

Searched refs:lifc (Results 1 – 4 of 4) sorted by relevance

/external/valgrind/memcheck/tests/solaris/
Dioctl.c59 struct lifconf lifc; in test_SIOCGLIFCONF() local
60 lifc.lifc_family = AF_INET; in test_SIOCGLIFCONF()
61 lifc.lifc_flags = 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()
64 if (lifc.lifc_buf == NULL) in test_SIOCGLIFCONF()
67 if (ioctl(fd, SIOCGLIFCONF, &lifc) < 0) in test_SIOCGLIFCONF()
72 if (lifc.lifc_len != 0) x = -1; else x = -2; in test_SIOCGLIFCONF()
73 if (lifc.lifc_req != NULL) x = -3; else x = -4; in test_SIOCGLIFCONF()
74 if (strcmp(lifc.lifc_req[0].lifr_name, "") != 0) x = -5; else x = -6; in test_SIOCGLIFCONF()
[all …]
Dscalar_ioctl.c323 struct lifconf lifc; in sys_ioctl_SIOCGLIFCONF_2() local
326 lifc.lifc_len = x0 + 1; in sys_ioctl_SIOCGLIFCONF_2()
327 lifc.lifc_buf = (void *) (x0 + buf); in sys_ioctl_SIOCGLIFCONF_2()
328 lifc.lifc_family = x0 + 1; in sys_ioctl_SIOCGLIFCONF_2()
329 lifc.lifc_flags = x0 + 0; in sys_ioctl_SIOCGLIFCONF_2()
332 SY(SYS_ioctl, x0 - 1, x0 + SIOCGLIFCONF, &lifc + x0); FAIL; in sys_ioctl_SIOCGLIFCONF_2()
/external/avahi/avahi-core/
Diface-pfroute.c503 struct lifconf lifc; in avahi_interface_monitor_sync()
510 lifc.lifc_buf = NULL; in avahi_interface_monitor_sync()
517 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); in avahi_interface_monitor_sync()
518 if ((lifc.lifc_buf = avahi_malloc(lifc.lifc_len)) == NULL) { in avahi_interface_monitor_sync()
522 lifc.lifc_family = NULL; in avahi_interface_monitor_sync()
523 lifc.lifc_flags = 0; in avahi_interface_monitor_sync()
524 if(ioctl(sockfd, SIOCGLIFCONF, &lifc) < 0) { in avahi_interface_monitor_sync()
528 lifreq = lifc.lifc_req; in avahi_interface_monitor_sync()
530 for (n = 0; n < lifc.lifc_len; n += sizeof(struct lifreq)) { in avahi_interface_monitor_sync()
539 avahi_free(lifc.lifc_buf); in avahi_interface_monitor_sync()
/external/ppp/pppd/
Dsys-solaris.c293 struct lifconf lifc; in get_first_ethernet() local
328 lifc.lifc_family = AF_UNSPEC; in get_first_ethernet()
329 lifc.lifc_flags = LIFC_NOXMIT; in get_first_ethernet()
330 lifc.lifc_len = req_size; in get_first_ethernet()
331 lifc.lifc_buf = req; in get_first_ethernet()
332 if (ioctl(fd, SIOCGLIFCONF, &lifc) < 0) { in get_first_ethernet()
343 plifreq = lifc.lifc_req; in get_first_ethernet()
345 for (i = lifc.lifc_len / sizeof(struct lifreq); i > 0; i--, plifreq++) { in get_first_ethernet()