Lines Matching refs:lifr

602 	struct lifreq	lifr;
629 (void) strlcpy(lifr.lifr_name, pi_name, sizeof (lifr.lifr_name));
630 if (ioctl(ifsock, SIOCGLIFFLAGS, (char *)&lifr) < 0) {
637 flags = lifr.lifr_flags;
646 if (ioctl(ifsock, SIOCGLIFINDEX, (char *)&lifr) < 0) {
653 ifindex = lifr.lifr_index;
658 if (ioctl(ifsock, SIOCGLIFGROUPNAME, (char *)&lifr) < 0) {
665 (void) strlcpy(pg_name, lifr.lifr_groupname, sizeof (pg_name));
679 lifr.lifr_flags = flags &
681 if (ioctl(ifsock, SIOCSLIFFLAGS, (char *)&lifr) < 0) {
1213 struct lifreq lifr;
1228 (void) strncpy(lifr.lifr_name, pi->pi_name, sizeof (lifr.lifr_name));
1229 lifr.lifr_name[sizeof (lifr.lifr_name) - 1] = '\0';
1232 if (ioctl(ifsock, SIOCGLIFINDEX, &lifr) < 0) {
1242 if (lifr.lifr_index != pi->pi_ifindex) {
1251 pi->pi_ifindex, lifr.lifr_index);
1260 if (ioctl(ifsock, SIOCGLIFGROUPNAME, &lifr) < 0) {
1275 if (strcmp(lifr.lifr_groupname, pi->pi_group->pg_name) != 0) {
1290 if (ioctl(ifsock, SIOCGLIFFLAGS, &lifr) < 0) {
1300 pi->pi_flags = PHYINT_FLAGS(lifr.lifr_flags);
1758 struct lifreq lifr;
1781 (void) strncpy(lifr.lifr_name, li_name, sizeof (lifr.lifr_name));
1782 lifr.lifr_name[sizeof (lifr.lifr_name) - 1] = '\0';
1783 if (ioctl(ifsock, SIOCGLIFFLAGS, (char *)&lifr) < 0) {
1792 flags = lifr.lifr_flags;
1823 if (ioctl(ifsock, SIOCGLIFADDR, (char *)&lifr) < 0) {
1832 sin = (struct sockaddr_in *)&lifr.lifr_addr;
1835 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr;
1839 if (ioctl(ifsock, SIOCGLIFSUBNET, (char *)&lifr) < 0) {
1845 if (lifr.lifr_subnet.ss_family == AF_INET6) {
1846 sin6 = (struct sockaddr_in6 *)&lifr.lifr_subnet;
1848 test_subnet_len = lifr.lifr_addrlen;
1850 sin = (struct sockaddr_in *)&lifr.lifr_subnet;
1852 test_subnet_len = lifr.lifr_addrlen + (IPV6_ABITS - IP_ABITS);
3376 struct lifreq lifr;
3401 (void) strlcpy(lifr.lifr_name, addrmatchp->al_name, LIFNAMSIZ);
3402 if (ioctl(ifsock, SIOCGLIFBINDING, &lifr) >= 0)
3403 binding = lifr.lifr_binding;