Lines Matching refs:ai
2396 randomize_srtt(fetchctx_t *fctx, dns_adbaddrinfo_t *ai) {
2397 if (TRIED(ai)) {
2398 ai->srtt >>= 10; /* convert to milliseconds, near enough */
2399 ai->srtt |= (ai->srtt & 0x80) | random_bits(fctx, 7);
2400 ai->srtt <<= 10; /* now back to microseconds */
2402 ai->srtt = random_bits(fctx, 3) << 10;
2478 dns_adbaddrinfo_t *ai;
2523 for (ai = ISC_LIST_HEAD(find->list);
2524 ai != NULL;
2525 ai = ISC_LIST_NEXT(ai, publink)) {
2526 ai->flags |= flags;
2528 isc_sockaddr_setport(&ai->sockaddr,
2597 dns_adbaddrinfo_t *ai;
2675 ai = NULL;
2677 sa, &ai, 0); /* XXXMLG */
2680 ai->flags |= FCTX_ADDRINFO_FORWARDER;
2682 while (cur != NULL && cur->srtt < ai->srtt)
2686 ai, publink);
2688 ISC_LIST_APPEND(fctx->forwaddrs, ai, publink);
2766 ai = NULL;
2768 &ai, 0);
2771 ai->flags |= FCTX_ADDRINFO_FORWARDER;
2773 while (cur != NULL && cur->srtt < ai->srtt)
2777 cur, ai, publink);
2779 ISC_LIST_APPEND(fctx->altaddrs, ai,