Lines Matching refs:ifc
735 struct ifconf ifc; local
765 ifc.ifc_len = req_size;
766 ifc.ifc_buf = req;
767 if (myioctl(fd, SIOCGIFCONF, &ifc) < 0) {
777 pifreq = ifc.ifc_req;
779 for (i = ifc.ifc_len / sizeof (struct ifreq); i > 0; i--, pifreq++) {
2692 struct ifconf ifc; in get_ether_addr() local
2708 ifc.ifc_len = nif * sizeof (struct ifreq); in get_ether_addr()
2709 ifc.ifc_buf = (caddr_t)malloc(ifc.ifc_len); in get_ether_addr()
2710 if (ifc.ifc_buf == NULL) { in get_ether_addr()
2713 if (myioctl(ipfd, SIOCGIFCONF, &ifc) < 0) { in get_ether_addr()
2715 free(ifc.ifc_buf); in get_ether_addr()
2719 ifend = (struct ifreq *)(ifc.ifc_buf + ifc.ifc_len); in get_ether_addr()
2720 for (ifr = ifc.ifc_req; ifr < ifend; ++ifr) { in get_ether_addr()
2755 free(ifc.ifc_buf); in get_ether_addr()
2766 free(ifc.ifc_buf); in get_ether_addr()
2786 free(ifc.ifc_buf); in get_ether_addr()