Lines Matching refs:stl_hdr

3160 	iscsi_sendtgts_list_t	*stl_hdr = NULL;
3165 stl_sz = sizeof (*stl_hdr) + ((SENDTGTS_DEFAULT_NUM_TARGETS - 1) *
3167 stl_hdr = (iscsi_sendtgts_list_t *)calloc(1, stl_sz);
3168 if (stl_hdr == NULL) {
3171 stl_hdr->stl_entry.e_vers = ISCSI_INTERFACE_VERSION;
3172 stl_hdr->stl_in_cnt = SENDTGTS_DEFAULT_NUM_TARGETS;
3177 stl_hdr->stl_entry.e_insize = sizeof (struct in_addr);
3180 stl_hdr->stl_entry.e_insize = sizeof (struct in6_addr);
3185 &stl_hdr->stl_entry.e_u,
3187 stl_hdr->stl_entry.e_port = address.portNumber;
3199 if (ioctl(fd, ISCSI_SENDTGTS_GET, stl_hdr) != 0) {
3203 free(stl_hdr);
3208 if (stl_hdr->stl_in_cnt < stl_hdr->stl_out_cnt) {
3210 stl_sz = sizeof (*stl_hdr) +
3211 ((stl_hdr->stl_out_cnt - 1) *
3213 stl_hdr = (iscsi_sendtgts_list_t *)
3214 realloc(stl_hdr, stl_sz);
3215 if (stl_hdr == NULL) {
3219 stl_hdr->stl_in_cnt = stl_hdr->stl_out_cnt;
3231 stl_hdr->stl_out_cnt = stl_hdr->stl_in_cnt;
3240 stl_hdr->stl_out_cnt * sizeof (SUN_IMA_DISC_ADDRESS_KEY));
3242 free(stl_hdr);
3246 (*ppList)->keyCount = stl_hdr->stl_out_cnt;
3248 for (ctr = 0; ctr < stl_hdr->stl_out_cnt; ctr++) {
3250 (char *)stl_hdr->stl_list[ctr].ste_name,
3253 (*ppList)->keys[ctr].tpgt = stl_hdr->stl_list[ctr].ste_tpgt;
3256 stl_hdr->stl_list[ctr].ste_ipaddr.a_port;
3258 if (stl_hdr->stl_list[ctr].ste_ipaddr.a_addr.i_insize ==
3262 } else if (stl_hdr->stl_list[ctr].ste_ipaddr.a_addr.i_insize ==
3267 free(stl_hdr);
3275 &(stl_hdr->stl_list[ctr].ste_ipaddr.a_addr.i_addr),
3276 stl_hdr->stl_list[ctr].ste_ipaddr.a_addr.i_insize);
3278 free(stl_hdr);