Lines Matching refs:ifc
741 struct ifconf ifc; local
771 ifc.ifc_len = req_size;
772 ifc.ifc_buf = req;
773 if (myioctl(fd, SIOCGIFCONF, &ifc) < 0) {
783 pifreq = ifc.ifc_req;
785 for (i = ifc.ifc_len / sizeof (struct ifreq); i > 0; i--, pifreq++) {
2751 struct ifconf ifc; in get_ether_addr() local
2767 ifc.ifc_len = nif * sizeof (struct ifreq); in get_ether_addr()
2768 ifc.ifc_buf = (caddr_t)malloc(ifc.ifc_len); in get_ether_addr()
2769 if (ifc.ifc_buf == NULL) { in get_ether_addr()
2772 if (myioctl(ipfd, SIOCGIFCONF, &ifc) < 0) { in get_ether_addr()
2774 free(ifc.ifc_buf); in get_ether_addr()
2778 ifend = (struct ifreq *)(ifc.ifc_buf + ifc.ifc_len); in get_ether_addr()
2779 for (ifr = ifc.ifc_req; ifr < ifend; ++ifr) { in get_ether_addr()
2814 free(ifc.ifc_buf); in get_ether_addr()
2825 free(ifc.ifc_buf); in get_ether_addr()
2845 free(ifc.ifc_buf); in get_ether_addr()