ifconf
struct ifconf ifc;
struct ifconf ifc;
static struct ifconf ifconf; /* points to ifreq */
if (ifconf.ifc_len == 0) {
ifconf.ifc_len = ioc.ic_len;
ifconf.ifc_req = ifreq;
ifconf.ifc_len = sizeof(ifreq);
ifconf.ifc_req = ifreq;
m = ioctl(s, SIOCGIFCONF, (caddr_t) & ifconf);
if ((m < 0) || (ifconf.ifc_len <= 0)) {
len = ifconf.ifc_len;
struct ifconf ifc;
static int ifconf(u_long, caddr_t, struct ucred *);
return (ifconf(cmd, data, cred));
struct ifconf *ifc = (struct ifconf *)data;
#define SIOCGIFCONF _IOWR('i', 36, struct ifconf) /* get ifnet list */
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifconf;
memset(&ifconf, 0, sizeof(ifconf));
ifconf.ifc_req = iflist;
ifconf.ifc_len = maxif * BUFSIZ; /* XXX */
if (ioctl(s, SIOCGIFCONF, &ifconf) < 0) {
ifr_end = (struct ifreq *) (ifconf.ifc_buf + ifconf.ifc_len);
for (ifr = ifconf.ifc_req;