Lines Matching refs:ifcon
341 struct ifconf ifcon;
346 ifcon.ifc_buf = NULL;
348 ifcon.ifc_len = sizeof(struct ifreq)*num;
349 ifcon.ifc_buf = xrealloc(ifcon.ifc_buf, ifcon.ifc_len);
350 xioctl(TT.sockfd, SIOCGIFCONF, &ifcon);
351 if (ifcon.ifc_len != sizeof(struct ifreq)*num) break;
354 ifre = ifcon.ifc_req;
355 for(num = 0; num < ifcon.ifc_len && ifre; num += sizeof(struct ifreq), ifre++)
364 free(ifcon.ifc_buf);