Home
last modified time | relevance | path

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

/external/ppp/pppd/
Dsys-solaris.c295 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 …]