Searched refs:lifrr (Results 1 – 1 of 1) sorted by relevance
482 struct lifreq lifrr; in smb_nic_getinfo() local492 (void) strlcpy(lifrr.lifr_name, interface, sizeof (lifrr.lifr_name)); in smb_nic_getinfo()493 if (ioctl(s, SIOCGLIFADDR, &lifrr) < 0) { in smb_nic_getinfo()497 isv6 = (lifrr.lifr_addr.ss_family == AF_INET6); in smb_nic_getinfo()499 sin6 = (struct sockaddr_in6 *)(&lifrr.lifr_addr); in smb_nic_getinfo()503 sin = (struct sockaddr_in *)(&lifrr.lifr_addr); in smb_nic_getinfo()513 if (ioctl(s, SIOCGLIFBRDADDR, &lifrr) < 0) { in smb_nic_getinfo()517 sin = (struct sockaddr_in *)&lifrr.lifr_broadaddr; in smb_nic_getinfo()520 if (ioctl(s, SIOCGLIFNETMASK, &lifrr) < 0) { in smb_nic_getinfo()524 sin = (struct sockaddr_in *)&lifrr.lifr_addr; in smb_nic_getinfo()[all …]