Lines Matching defs:lifc
472 struct lifconf lifc;
503 lifc.lifc_family = AF_INET;
504 lifc.lifc_flags = 0;
505 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq);
506 lifc.lifc_buf = malloc(lifc.lifc_len);
508 if (lifc.lifc_buf == NULL) {
514 if (ioctl(sock, SIOCGLIFCONF, (char *)&lifc) < 0) {
517 free(lifc.lifc_buf);
522 n = lifc.lifc_len / (int)sizeof (struct lifreq);
525 free(lifc.lifc_buf);
530 for (i = 0, lifrp = lifc.lifc_req; i < n; i++, lifrp++) {
549 free(lifc.lifc_buf);