Lines Matching refs:ifsock
611 static int ifsock = -1; variable
633 if (ifsock < 0) { in initifs()
634 ifsock = socket(AF_INET6, SOCK_DGRAM, 0); in initifs()
635 if (ifsock < 0) { in initifs()
642 if (ioctl(ifsock, SIOCGLIFNUM, (char *)&lifn) < 0) { in initifs()
677 if (ioctl(ifsock, SIOCGLIFCONF, (char *)&lifc) < 0) { in initifs()
685 if_process(ifsock, lifr->lifr_name, first); in initifs()
1690 if (ifsock < 0) { in process_rtsock()
1691 ifsock = socket(AF_INET6, SOCK_DGRAM, 0); in process_rtsock()
1692 if (ifsock < 0) { in process_rtsock()
1697 if_process(ifsock, pi->pi_name, _B_FALSE); in process_rtsock()
1699 if_process(ifsock, pr->pr_name, _B_FALSE); in process_rtsock()
2366 if (ifsock < 0) { in ndpd_create_addrs()
2367 ifsock = socket(AF_INET6, SOCK_DGRAM, 0); in ndpd_create_addrs()
2368 if (ifsock < 0) { in ndpd_create_addrs()
2376 if (ioctl(ifsock, SIOCGLIFTOKEN, (char *)&lifr) < 0) { in ndpd_create_addrs()
2429 if (ifsock < 0) { in ndpd_delete_addrs()
2430 ifsock = socket(AF_INET6, SOCK_DGRAM, 0); in ndpd_delete_addrs()
2431 if (ifsock < 0) { in ndpd_delete_addrs()
2450 if (ioctl(ifsock, SIOCGLIFFLAGS, (char *)&lifr) < 0) { in ndpd_delete_addrs()
2469 if (ioctl(ifsock, SIOCGLIFFLAGS, (char *)&lifr) < 0) { in ndpd_delete_addrs()