Lines Matching defs:hostname_list
2474 * On successful return, hostname_list points to a list of hosts (last one being
2479 parse_input(char *cmd_line_input, char **hostname_list, uchar_t *src_rtng_type)
2510 hostname_list[0] = strdup(cp);
2511 if (hostname_list[0] == NULL) {
2539 hostname_list[gw_count] = strdup(hname);
2540 if (hostname_list[gw_count] == NULL) {
2583 * The last host in the hostname_list is the target. After resolving the target,
2590 resolve_hosts(char **hostname_list, int num_gw, struct gateway **gw_addrsp,
2617 rc = getaddrinfo(hostname_list[num_gw],
2620 if (hostname_list[num_gw] != NULL &&
2621 *hostname_list[num_gw] != '\0')
2622 (void) fprintf(stderr, "%s: ", hostname_list[num_gw]);
2674 rc = getaddrinfo(hostname_list[i], NULL, NULL, &gateway);
2676 if (hostname_list[i] != NULL &&
2677 *hostname_list[i] != '\0')
2679 hostname_list[i]);
2763 hostname_list[res_failed_at6]);
2768 hostname_list[res_failed_at4]);
2935 char *hostname_list[MAXMAX_GATEWAY + 1] = {NULL};
3055 num_gw = parse_input(hostp, hostname_list, &src_rtng_type);
3060 /* Last host in the hostname_list is the target */
3061 hostp = hostname_list[num_gw];
3063 host = resolve_hosts(hostname_list, num_gw, &gw_addrs, &addr_type,
3310 FreeHostnameList(hostname_list);
3353 FreeHostnameList(hostname_list);