Lines Matching refs:lifrl
1489 struct lifreq lifrl; /* local lifreq struct */ in setifflags() local
1539 (void) strlcpy(lifrl.lifr_name, name, LIFNAMSIZ); in setifflags()
1543 ioctl(s, SIOCGLIFGROUPNAME, &lifrl) == 0 && in setifflags()
1544 lifrl.lifr_groupname[0] != '\0') { in setifflags()
1547 (void) strlcpy(lifgr.gi_grname, lifrl.lifr_groupname, in setifflags()
1552 (void) strlcpy(lifrl.lifr_name, lifgr.gi_grifname, LIFNAMSIZ); in setifflags()
1553 if (ioctl(s, SIOCGLIFFLAGS, &lifrl) == -1) in setifflags()
1555 if (!(lifrl.lifr_flags & IFF_UP)) { in setifflags()
1556 lifrl.lifr_flags |= IFF_UP; in setifflags()
1557 if (ioctl(s, SIOCSLIFFLAGS, &lifrl) == -1) in setifflags()
2095 struct lifreq lifrl; in setifgroupname() local
2105 (void) strlcpy(lifrl.lifr_name, name, LIFNAMSIZ); in setifgroupname()
2106 (void) strlcpy(lifrl.lifr_groupname, grname, LIFGRNAMSIZ); in setifgroupname()
2108 while (ioctl(s, SIOCSLIFGROUPNAME, &lifrl) == -1) { in setifgroupname()
2129 lifrl.lifr_groupname[0] = '\0'; in setifgroupname()
2130 if (ioctl(s, SIOCSLIFGROUPNAME, &lifrl) == -1) { in setifgroupname()
2135 (void) strlcpy(lifrl.lifr_groupname, grname, in setifgroupname()
2176 if (ifaddrlistx(lifrl.lifr_name, IFF_UP|IFF_DUPLICATE, in setifgroupname()
2210 if (ifaddrlistx(lifrl.lifr_name, iap->ia_flag, in setifgroupname()
2214 "by %s\n", lifrl.lifr_name, in setifgroupname()
2232 "by %s\n", lifrl.lifr_name, iap->ia_app); in setifgroupname()
3811 struct lifreq lifrl; /* Local lifreq struct */ in ifaddr_op() local
3814 (void) memset(&lifrl, 0, sizeof (lifrl)); in ifaddr_op()
3815 (void) strlcpy(lifrl.lifr_name, ifaddrp->ia_name, LIFNAMSIZ); in ifaddr_op()
3816 if (ioctl(fd, SIOCGLIFFLAGS, &lifrl) == -1) in ifaddr_op()
3820 lifrl.lifr_flags |= IFF_UP; in ifaddr_op()
3822 lifrl.lifr_flags &= ~IFF_UP; in ifaddr_op()
3824 if (ioctl(fd, SIOCSLIFFLAGS, &lifrl) == -1) in ifaddr_op()
3831 if (!up && ioctl(fd, SIOCGLIFFLAGS, &lifrl) != -1 && in ifaddr_op()
3832 lifrl.lifr_flags & IFF_DUPLICATE) { in ifaddr_op()
3833 if (ioctl(fd, SIOCGLIFADDR, &lifrl) == -1 || in ifaddr_op()
3834 ioctl(fd, SIOCSLIFADDR, &lifrl) == -1) { in ifaddr_op()