Searched refs:ifsock (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | main.c | 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() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/ |
H A D | mpd_tables.c | 599 int ifsock; in phyint_inst_init_from_k() local 622 ifsock = (af == AF_INET) ? ifsock_v4 : ifsock_v6; in phyint_inst_init_from_k() 630 if (ioctl(ifsock, SIOCGLIFFLAGS, (char *)&lifr) < 0) { in phyint_inst_init_from_k() 646 if (ioctl(ifsock, SIOCGLIFINDEX, (char *)&lifr) < 0) { in phyint_inst_init_from_k() 658 if (ioctl(ifsock, SIOCGLIFGROUPNAME, (char *)&lifr) < 0) { in phyint_inst_init_from_k() 681 if (ioctl(ifsock, SIOCSLIFFLAGS, (char *)&lifr) < 0) { in phyint_inst_init_from_k() 1214 int ifsock; in phyint_inst_update_from_k() local 1231 ifsock = (pii->pii_af == AF_INET) ? ifsock_v4 : ifsock_v6; in phyint_inst_update_from_k() 1232 if (ioctl(ifsock, SIOCGLIFINDEX, &lifr) < 0) { in phyint_inst_update_from_k() 1260 if (ioctl(ifsock, SIOCGLIFGROUPNAME, &lifr) < 0) { in phyint_inst_update_from_k() [all …]
|
H A D | mpd_probe.c | 2591 int ifsock; in change_pif_flags() local 2601 ifsock = ifsock_v4; in change_pif_flags() 2603 ifsock = ifsock_v6; in change_pif_flags() 2612 if (ioctl(ifsock, SIOCGLIFFLAGS, (char *)&lifr) < 0) { in change_pif_flags() 2627 if (ioctl(ifsock, SIOCSLIFFLAGS, (char *)&lifr) < 0) { in change_pif_flags()
|