Lines Matching defs:ifconf
44 struct ifconf ifconf;
71 ifconf.ifc_buf = NULL;
77 ifconf.ifc_len = sizeof (struct ifreq) * ifnum;
78 ifconf.ifc_buf = XREALLOC(MTYPE_TMP, ifconf.ifc_buf, ifconf.ifc_len);
80 ret = ioctl(sock, SIOCGIFCONF, &ifconf);
90 if (ifconf.ifc_len > lastlen)
92 lastlen = ifconf.ifc_len;
101 ifreq = ifconf.ifc_req;
104 for (n = 0; n < ifconf.ifc_len; )
108 ifreq = (struct ifreq *)((caddr_t) ifconf.ifc_req + n);
118 for (n = 0; n < ifconf.ifc_len; n += sizeof(struct ifreq))
128 XFREE (MTYPE_TMP, ifconf.ifc_buf);