Lines Matching refs:lifrr
482 struct lifreq lifrr;
492 (void) strlcpy(lifrr.lifr_name, interface, sizeof (lifrr.lifr_name));
493 if (ioctl(s, SIOCGLIFADDR, &lifrr) < 0) {
497 isv6 = (lifrr.lifr_addr.ss_family == AF_INET6);
499 sin6 = (struct sockaddr_in6 *)(&lifrr.lifr_addr);
503 sin = (struct sockaddr_in *)(&lifrr.lifr_addr);
513 if (ioctl(s, SIOCGLIFBRDADDR, &lifrr) < 0) {
517 sin = (struct sockaddr_in *)&lifrr.lifr_broadaddr;
520 if (ioctl(s, SIOCGLIFNETMASK, &lifrr) < 0) {
524 sin = (struct sockaddr_in *)&lifrr.lifr_addr;
527 if (ioctl(s, SIOCGLIFFLAGS, &lifrr) < 0) {
531 nc->nic_sysflags = lifrr.lifr_flags;