Lines Matching refs:hostp

276 	host_id_list_t *hostp;  in find_hostid_in_list()  local
282 hostp = host_list; in find_hostid_in_list()
283 while (hostp) { in find_hostid_in_list()
284 if (hostp->hostid.platform && in find_hostid_in_list()
285 strcmp(hostp->hostid.platform, platform) == 0 && in find_hostid_in_list()
286 hostp->hostid.server && in find_hostid_in_list()
287 strcmp(hostp->hostid.server, server) == 0 && in find_hostid_in_list()
288 (chassis == NULL || hostp->hostid.chassis == NULL || in find_hostid_in_list()
289 strcmp(chassis, hostp->hostid.chassis) == 0) && in find_hostid_in_list()
290 (product_sn == NULL || hostp->hostid.product_sn == NULL || in find_hostid_in_list()
291 strcmp(product_sn, hostp->hostid.product_sn) == 0) && in find_hostid_in_list()
292 (domain == NULL || hostp->hostid.domain == NULL || in find_hostid_in_list()
293 strcmp(domain, hostp->hostid.domain) == 0)) { in find_hostid_in_list()
294 rt = &hostp->hostid; in find_hostid_in_list()
297 hostp = hostp->next; in find_hostid_in_list()
300 hostp = malloc(sizeof (host_id_list_t)); in find_hostid_in_list()
301 hostp->hostid.platform = strdup(platform); in find_hostid_in_list()
302 hostp->hostid.product_sn = in find_hostid_in_list()
304 hostp->hostid.server = strdup(server); in find_hostid_in_list()
305 hostp->hostid.chassis = chassis ? strdup(chassis) : NULL; in find_hostid_in_list()
306 hostp->hostid.domain = domain ? strdup(domain) : NULL; in find_hostid_in_list()
307 hostp->next = host_list; in find_hostid_in_list()
308 host_list = hostp; in find_hostid_in_list()
309 rt = &hostp->hostid; in find_hostid_in_list()