Lines Matching defs:conf
114 struct ifconf conf;
125 conf.ifc_len = numreqs * sizeof(struct ifreq);
126 conf.ifc_buf = malloc((unsigned int) conf.ifc_len);
127 if (! conf.ifc_buf)
130 err = ioctl(s, SIOCGIFCONF, &conf);
135 if ((size_t)conf.ifc_len < numreqs * sizeof(struct ifreq))
138 conf.ifc_len = numreqs * sizeof(struct ifreq);
139 conf.ifc_buf = realloc(conf.ifc_buf, (unsigned int) conf.ifc_len);
140 if (! conf.ifc_buf)
143 numreqs = conf.ifc_len / sizeof(struct ifreq);
145 struct ifreq *req = &conf.ifc_req[i];
155 free(conf.ifc_buf);