Lines Matching refs:targetaddr
137 struct targetaddr *current_targetaddr; /* current target IP address to probe */
138 static struct targetaddr *targetaddr_list; /* list of IP addresses to probe */
214 static struct targetaddr *build_targetaddr_list(struct addrinfo *,
218 static struct targetaddr *create_targetaddr_item(int, union any_in_addr *,
688 * Set the starting_seq_num for the first targetaddr.
694 * We set the starting_seq_num for first targetaddr here. The
696 * targetaddr.
760 static struct targetaddr *
763 struct targetaddr *head = NULL;
764 struct targetaddr *targetaddr;
765 struct targetaddr **nextp;
779 targetaddr = create_targetaddr_item(aip->ai_family,
786 targetaddr = create_targetaddr_item(aip->ai_family,
795 *nextp = targetaddr;
796 nextp = &targetaddr->next;
808 * options provided at the command line, this function creates a targetaddr
809 * to be linked with others, forming a global targetaddr list. Each targetaddr
812 static struct targetaddr *
816 struct targetaddr *targetaddr;
818 targetaddr = (struct targetaddr *)malloc(sizeof (struct targetaddr));
819 if (targetaddr == NULL) {
823 targetaddr->family = family;
824 targetaddr->dst_addr = *dst_addr;
825 targetaddr->src_addr = *src_addr;
834 targetaddr->num_probes = npackets;
836 targetaddr->num_probes = 1;
838 targetaddr->num_probes = timeout;
840 targetaddr->num_sent = 0;
841 targetaddr->got_reply = _B_FALSE;
842 targetaddr->probing_done = _B_FALSE;
843 targetaddr->starting_seq_num = 0; /* actual value will be set later */
844 targetaddr->next = NULL; /* actual value will be set later */
846 return (targetaddr);
1806 * We are about to move to next targetaddr if it's either we sent
1855 * Each time we move to a new targetaddr, which has
2310 struct targetaddr *target = targetaddr_list;