Lines Matching refs:lifrp
1712 struct lifreq *lifrp, *lifrmax; in remove_v6_strays() local
1742 lifc.lifc_len = numifs * sizeof (*lifrp); in remove_v6_strays()
1743 lifrp = realloc(lifc.lifc_buf, lifc.lifc_len); in remove_v6_strays()
1744 if (lifrp == NULL) { in remove_v6_strays()
1750 lifc.lifc_buf = (caddr_t)lifrp; in remove_v6_strays()
1753 lifc.lifc_len < numifs * sizeof (*lifrp)) in remove_v6_strays()
1764 lifrmax = lifrp + lifc.lifc_len / sizeof (*lifrp); in remove_v6_strays()
1765 for (; lifrp < lifrmax; lifrp++) { in remove_v6_strays()
1769 if (ioctl(v6_sock_fd, SIOCGLIFFLAGS, lifrp) == -1) in remove_v6_strays()
1771 flags = lifrp->lifr_flags; in remove_v6_strays()
1778 if (ioctl(v6_sock_fd, SIOCGLIFADDR, lifrp) == -1) in remove_v6_strays()
1780 if (IN6_IS_ADDR_LINKLOCAL(&((struct sockaddr_in6 *)&lifrp-> in remove_v6_strays()
1782 lifrp->lifr_flags = flags & ~IFF_DHCPRUNNING; in remove_v6_strays()
1783 (void) ioctl(v6_sock_fd, SIOCSLIFFLAGS, lifrp); in remove_v6_strays()
1790 if (ioctl(v6_sock_fd, SIOCLIFREMOVEIF, lifrp) == 0) { in remove_v6_strays()
1792 lifrp->lifr_name); in remove_v6_strays()
1796 lifrp->lifr_name); in remove_v6_strays()