Searched refs:lifr (Results 1 – 2 of 2) sorted by relevance
/external/ppp/pppd/ |
D | sys-solaris.c | 295 struct lifreq lifr; in get_first_ethernet() local 350 memset(&lifr, 0, sizeof(lifr)); in get_first_ethernet() 351 strncpy(lifr.lifr_name, plifreq->lifr_name, sizeof(lifr.lifr_name)); in get_first_ethernet() 352 if (ioctl(fd, SIOCGLIFFLAGS, &lifr) < 0) { in get_first_ethernet() 358 fl = lifr.lifr_flags; in get_first_ethernet() 371 strncpy(first_ether_name, lifr.lifr_name, sizeof(first_ether_name)); in get_first_ethernet() 503 struct lifreq lifr; local 506 memset(&lifr, 0, sizeof(lifr)); 507 ret = ioctl(fd, SIOCGLIFFLAGS, &lifr); 511 lifr.lifr_flags |= IFF_IPV6; [all …]
|
/external/valgrind/memcheck/tests/solaris/ |
D | scalar_ioctl.c | 302 struct lifreq lifr; in sys_ioctl_SIOCGLIFBRDADDR_2() local 304 lifr.lifr_name[0] = x0 + 'l'; in sys_ioctl_SIOCGLIFBRDADDR_2() 305 lifr.lifr_name[1] = x0 + 'o'; in sys_ioctl_SIOCGLIFBRDADDR_2() 306 lifr.lifr_name[2] = x0 + '0'; in sys_ioctl_SIOCGLIFBRDADDR_2() 307 lifr.lifr_name[3] = x0 + '\0'; in sys_ioctl_SIOCGLIFBRDADDR_2() 310 SY(SYS_ioctl, x0 - 1, x0 + SIOCGLIFBRDADDR, &lifr + x0); FAIL; in sys_ioctl_SIOCGLIFBRDADDR_2() 345 struct lifreq lifr; in sys_ioctl_SIOCGLIFFLAGS_2() local 347 lifr.lifr_name[0] = x0 + 'l'; in sys_ioctl_SIOCGLIFFLAGS_2() 348 lifr.lifr_name[1] = x0 + 'o'; in sys_ioctl_SIOCGLIFFLAGS_2() 349 lifr.lifr_name[2] = x0 + '0'; in sys_ioctl_SIOCGLIFFLAGS_2() [all …]
|