Lines Matching refs:lifr
307 struct lifreq lifr;
310 bzero(&lifr, sizeof (lifr));
311 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name));
317 if (ioctl(sock, SIOCGLIFINDEX, (caddr_t)&lifr) < 0)
319 *index = lifr.lifr_index;
399 struct lifreq lifr;
421 bzero(&lifr, sizeof (lifr));
422 (void) strlcpy(lifr.lifr_name, lifname, sizeof (lifr.lifr_name));
423 lifr.lifr_flags = oflags;
424 if (ioctl(sock, SIOCSLIFFLAGS, (caddr_t)&lifr) < 0) {
448 struct lifreq lifr;
451 bzero(&lifr, sizeof (lifr));
452 (void) strlcpy(lifr.lifr_name, lifname, sizeof (lifr.lifr_name));
458 if (ioctl(sock, SIOCGLIFFLAGS, (caddr_t)&lifr) < 0) {
461 *flags = lifr.lifr_flags;
535 struct lifreq lifr;
537 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name));
538 if (ioctl(iph->iph_sock, SIOCGLIFGROUPNAME, (caddr_t)&lifr) < 0) {
540 (caddr_t)&lifr) < 0) {
544 return (lifr.lifr_groupname[0] != '\0');
569 struct lifreq lifr;
573 bzero(&lifr, sizeof (lifr));
574 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name));
577 if (ioctl(s4, SIOCGLIFFLAGS, (caddr_t)&lifr) == 0)
581 if (ioctl(s6, SIOCGLIFFLAGS, (caddr_t)&lifr) == 0)
585 if (ioctl(s4, SIOCGLIFFLAGS, (caddr_t)&lifr) == 0 ||
586 ioctl(s6, SIOCGLIFFLAGS, (caddr_t)&lifr) == 0) {