Lines Matching refs:lifrr
480 struct lifreq lifrr;
490 (void) strlcpy(lifrr.lifr_name, interface, sizeof (lifrr.lifr_name));
491 if (ioctl(s, SIOCGLIFADDR, &lifrr) < 0) {
495 isv6 = (lifrr.lifr_addr.ss_family == AF_INET6);
497 sin6 = (struct sockaddr_in6 *)(&lifrr.lifr_addr);
501 sin = (struct sockaddr_in *)(&lifrr.lifr_addr);
511 if (ioctl(s, SIOCGLIFBRDADDR, &lifrr) < 0) {
515 sin = (struct sockaddr_in *)&lifrr.lifr_broadaddr;
518 if (ioctl(s, SIOCGLIFNETMASK, &lifrr) < 0) {
522 sin = (struct sockaddr_in *)&lifrr.lifr_addr;
525 if (ioctl(s, SIOCGLIFFLAGS, &lifrr) < 0) {
529 nc->nic_sysflags = lifrr.lifr_flags;