Lines Matching defs:target

61 static void		pi_set_crtt(struct target *tg, int64_t m,
73 struct target *target);
75 struct target *cur_tg, struct probe_fail_count *pfinfo);
77 struct target *cur_tg, struct probe_success_count *psinfo);
80 static boolean_t highest_ack_tg(uint16_t seq, struct target *tg);
140 * target list. So the phyints are in the PI_NOTARGETS state.
181 * : delete the target list on all phyints
220 struct sockaddr_storage targ; /* target address */
252 * the all hosts address. Otherwise it is unicast to the next target.
316 * If this is a PROBE_UNI probe packet being unicast to a target, then
345 * If we have a single variable to denote the next target to
622 struct target *target;
633 /* Do we know this target ? */
634 target = target_lookup(pii, fromaddr);
635 if (target == NULL)
665 pi_set_crtt(target, m, _B_FALSE);
666 if ((target->tg_crtt < (pg->pg_probeint / LOWER_FDT_TRIGGER)) &&
712 struct target *target;
761 target = pii->pii_probes[pr_ndx].pr_target;
767 if (target != NULL) {
770 * probe reply with the target address in our tables.
772 if (!IN6_ARE_ADDR_EQUAL(&target->tg_address, &fromaddr)) {
775 * this target. This is a fake probe reply. Log an error
804 * send out any probe to this target. This is a fake.
845 * (phint, target) pair if this is the not the highest ack seq seen
846 * thus far on this target.
848 if (!highest_ack_tg(pr_icmp_seq, target))
855 pi_set_crtt(target, m, _B_TRUE);
859 * investigate if this slow target is an exception. If so we
860 * can avoid this target and still meet the failure detection
863 if (target->tg_crtt > pg->pg_probeint) {
864 exception = check_exception_target(pii, target);
867 * This target is exceptionally slow. Don't use it
881 if (target->tg_status == TG_ACTIVE)
883 target->tg_status = TG_SLOW;
884 target->tg_latime = gethrtime();
885 target->tg_rtt_sa = -1;
886 target->tg_crtt = 0;
887 target->tg_rtt_sd = 0;
888 if (pii->pii_target_next == target) {
890 target_next(target);
894 * the slow target is not a router, we can
897 * already an active target. target_delete()
900 target_delete(target);
909 pg->pg_probeint = target->tg_crtt * NEXT_FDT_MULTIPLE;
921 } else if ((target->tg_crtt < (pg->pg_probeint / LOWER_FDT_TRIGGER)) &&
980 * Returns true if seq is the highest unacknowledged seq for target tg
984 highest_ack_tg(uint16_t seq, struct target *tg)
1003 * an acked probe corresponding to target tg.
1049 struct target *tg;
1071 * This target responds very slowly to probes. The target's crtt exceeds
1073 * and determine if this target is an exception, if so return true, else false
1076 check_exception_target(struct phyint_instance *pii, struct target *target)
1078 struct target *tg;
1082 logdebug("check_exception_target(%s %s target %s)\n",
1084 pr_addr(pii->pii_af, target->tg_address,
1090 * to make a good judgement. Otherwise don't drop this target.
1096 * Determine whether only this particular target is slow.
1097 * We know that this target's crtt exceeds the group's probe interval.
1100 * then this target is considered slow.
1103 if (tg != target && tg->tg_status == TG_ACTIVE) {
1116 * Update the target list. The icmp all hosts multicast has given us
1137 * found a router, don't add this host target. If we already
1138 * know MAX_PROBE_TARGETS, don't add another target.
1162 * valid probe target.
1258 pi_set_crtt(struct target *tg, int64_t m, boolean_t is_probe_uni)
1268 logdebug("pi_set_crtt: target - m %lld\n", m);
1591 struct target *cur_tg;
1691 * to see if we found a target.
1789 * the crtt for this target, and also bumped
1867 * was called, the target list may be empty.
1872 * If we have just the one probe target, and we're not using
2027 struct target *tg;
2058 struct target *cur_tg;
2066 * of consecutive failed probes on this target only
2076 * If the current target has not responded to the
2078 * responding delete this target. Dead gateway detection
2079 * will eventually remove this target (if router) from the
2282 probe_success_info(struct phyint_instance *pii, struct target *cur_tg,
2293 struct target *tg;
2347 * target. Latch the number of recent
2348 * consecutive successes for this target
2387 * We hit a failure for the desired target.
2389 * successes for this target
2408 probe_fail_info(struct phyint_instance *pii, struct target *cur_tg,
2419 struct target *tg;
2493 * We hit a success for the desired target.
2495 * failures for this target
2528 struct target *cur_tg;
2705 * address as target address. If local zone address is a target address