ifconf
struct lifconf ifconf;
ifconf.lifc_family = AF_UNSPEC;
ifconf.lifc_flags = 0;
ifconf.lifc_len = ifnum.lifn_count * sizeof (struct lifreq);
ifconf.lifc_buf = alloca(ifconf.lifc_len);
if (ioctl(s4, SIOCGLIFCONF, &ifconf) < 0) {
for (ifr = ifconf.lifc_req; ifr < &ifconf.lifc_req[ifconf.lifc_len /
sizeof (ifconf.lifc_req[0])]; ifr++) {
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifconf;
ifconf.ifc_len = bufsize;
ifconf.ifc_buf = (caddr_t)reqbuf;
if (ioctl(fd, SIOCGIFCONF, (char *)&ifconf) < 0)
for (ifr = ifconf.ifc_req; ifconf.ifc_len > 0;
ifr++, ifconf.ifc_len -= sizeof (struct ifreq)) {
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifc;
STRUCT_HANDLE(ifconf, ifc);
(struct ifconf *)mp1->b_rptr);
copyin_size = SIZEOF_STRUCT(ifconf,
STRUCT_HANDLE(ifconf, ifc);
STRUCT_SET_HANDLE(ifc, iocp->ioc_flag, (struct ifconf *)addr);
copyin_size = SIZEOF_STRUCT(ifconf, iocp->ioc_flag);
struct ifconf ifc;
if (ddi_copyin((void *)arg, &ifc, sizeof (struct ifconf), 0)
if (ddi_copyout(&ifc, (void *)arg, sizeof (struct ifconf),
struct ifconf ifc;