Lines Matching refs:lifc
59 struct lifconf lifc; in ifaddrlist() local
66 (void) memset(&lifc, 0, sizeof (lifc)); in ifaddrlist()
94 lifc.lifc_flags = flags; in ifaddrlist()
95 lifc.lifc_family = family; in ifaddrlist()
96 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); in ifaddrlist()
97 if ((lifc.lifc_buf = realloc(lifc.lifc_buf, lifc.lifc_len)) == NULL) { in ifaddrlist()
102 if (ioctl(fd, SIOCGLIFCONF, &lifc) == -1) { in ifaddrlist()
112 nlifr = lifc.lifc_len / sizeof (struct lifreq); in ifaddrlist()
131 for (lifrp = lifc.lifc_req, i = 0; i < nlifr; i++, lifrp++) { in ifaddrlist()
169 free(lifc.lifc_buf); in ifaddrlist()
186 free(lifc.lifc_buf); in ifaddrlist()