Lines Matching defs:lifc
107 * lifc - the ifconf structure returned
108 * lifc->lifc_buf - the list of ifreq structures
121 struct lifconf *lifc;
139 lifc = (struct lifconf *)malloc(sizeof (struct lifconf));
140 if (lifc == NULL) {
151 free(lifc);
155 lifc->lifc_family = AF_UNSPEC;
156 lifc->lifc_flags = 0;
157 lifc->lifc_buf = buf;
158 lifc->lifc_len = numifs * sizeof (struct lifreq);
160 if (ioctl(sock, SIOCGLIFCONF, (char *)lifc) < 0) {
164 free(lifc);
170 return (lifc);