Lines Matching refs:ifc
285 __net_ifconf6header_t ifc; in uv__interface_addresses_v6() local
299 ifc.__nif6h_buffer = uv__calloc(1, maxsize); in uv__interface_addresses_v6()
301 if (ifc.__nif6h_buffer == NULL) { in uv__interface_addresses_v6()
306 ifc.__nif6h_version = 1; in uv__interface_addresses_v6()
307 ifc.__nif6h_buflen = maxsize; in uv__interface_addresses_v6()
309 if (ioctl(sockfd, SIOCGIFCONF6, &ifc) == -1) { in uv__interface_addresses_v6()
314 uv__free(ifc.__nif6h_buffer); in uv__interface_addresses_v6()
320 ifr = (__net_ifconf6entry_t*)(ifc.__nif6h_buffer); in uv__interface_addresses_v6()
321 while ((char*)ifr < (char*)ifc.__nif6h_buffer + ifc.__nif6h_buflen) { in uv__interface_addresses_v6()
323 ifr = (__net_ifconf6entry_t*)((char*)ifr + ifc.__nif6h_entrylen); in uv__interface_addresses_v6()
335 uv__free(ifc.__nif6h_buffer); in uv__interface_addresses_v6()
343 uv__free(ifc.__nif6h_buffer); in uv__interface_addresses_v6()
350 ifr = (__net_ifconf6entry_t*)(ifc.__nif6h_buffer); in uv__interface_addresses_v6()
351 while ((char*)ifr < (char*)ifc.__nif6h_buffer + ifc.__nif6h_buflen) { in uv__interface_addresses_v6()
353 ifr = (__net_ifconf6entry_t*)((char*)ifr + ifc.__nif6h_entrylen); in uv__interface_addresses_v6()
372 uv__free(ifc.__nif6h_buffer); in uv__interface_addresses_v6()
397 uv__free(ifc.__nif6h_buffer); in uv__interface_addresses_v6()
407 struct ifconf ifc; in uv_interface_addresses() local
436 ifc.ifc_req = uv__calloc(1, maxsize); in uv_interface_addresses()
438 if (ifc.ifc_req == NULL) { in uv_interface_addresses()
445 ifc.ifc_len = maxsize; in uv_interface_addresses()
447 if (ioctl(sockfd, SIOCGIFCONF, &ifc) == -1) { in uv_interface_addresses()
450 uv__free(ifc.ifc_req); in uv_interface_addresses()
459 ifr = ifc.ifc_req; in uv_interface_addresses()
460 while ((char*)ifr < (char*)ifc.ifc_req + ifc.ifc_len) { in uv_interface_addresses()
473 uv__free(ifc.ifc_req); in uv_interface_addresses()
485 uv__free(ifc.ifc_req); in uv_interface_addresses()
497 uv__free(ifc.ifc_req); in uv_interface_addresses()
513 ifr = ifc.ifc_req; in uv_interface_addresses()
514 while ((char*)ifr < (char*)ifc.ifc_req + ifc.ifc_len) { in uv_interface_addresses()
526 uv__free(ifc.ifc_req); in uv_interface_addresses()
545 uv__free(ifc.ifc_req); in uv_interface_addresses()
558 uv__free(ifc.ifc_req); in uv_interface_addresses()
572 uv__free(ifc.ifc_req); in uv_interface_addresses()