Lines Matching refs:ialp
3056 iscsi_addr_list_t *ialp, al_info; in getDiscoveryAddressPropertiesList() local
3086 ialp = (iscsi_addr_list_t *)calloc(1, discovery_addr_list_size); in getDiscoveryAddressPropertiesList()
3087 if (ialp == NULL) { in getDiscoveryAddressPropertiesList()
3091 ialp->al_vers = ISCSI_INTERFACE_VERSION; in getDiscoveryAddressPropertiesList()
3092 ialp->al_in_cnt = al_info.al_out_cnt; in getDiscoveryAddressPropertiesList()
3098 if (ioctl(fd, ISCSI_DISCOVERY_ADDR_LIST_GET, ialp) != 0) { in getDiscoveryAddressPropertiesList()
3099 free(ialp); in getDiscoveryAddressPropertiesList()
3109 ialp->al_out_cnt * sizeof (IMA_DISCOVERY_ADDRESS_PROPERTIES)); in getDiscoveryAddressPropertiesList()
3112 free(ialp); in getDiscoveryAddressPropertiesList()
3116 (*ppList)->discAddrCount = ialp->al_out_cnt; in getDiscoveryAddressPropertiesList()
3118 for (i = 0; i < ialp->al_out_cnt; i++) { in getDiscoveryAddressPropertiesList()
3119 if (ialp->al_addrs[i].a_addr.i_insize == in getDiscoveryAddressPropertiesList()
3123 } else if (ialp->al_addrs[i].a_addr.i_insize == in getDiscoveryAddressPropertiesList()
3134 bcopy(&ialp->al_addrs[i].a_addr.i_addr, (*ppList)->props[i]. in getDiscoveryAddressPropertiesList()
3140 ialp->al_addrs[i].a_port; in getDiscoveryAddressPropertiesList()
3143 free(ialp); in getDiscoveryAddressPropertiesList()