/freebsd-11.0-release/contrib/unbound/util/ |
H A D | rtt.c | 2 * util/rtt.c - UDP round trip time estimator for resend timeouts. 43 #include "util/rtt.h" 47 /** calculate RTO from rtt information */ 49 calc_rto(const struct rtt_info* rtt) argument 52 int rto = rtt->srtt + 4*rtt->rttvar; 61 rtt_init(struct rtt_info* rtt) argument 63 rtt->srtt = 0; 64 rtt->rttvar = 94; 65 rtt 71 rtt_timeout(const struct rtt_info* rtt) argument 77 rtt_unclamped(const struct rtt_info* rtt) argument 88 rtt_update(struct rtt_info* rtt, int ms) argument 99 rtt_lost(struct rtt_info* rtt, int orig) argument 118 rtt_notimeout(const struct rtt_info* rtt) argument [all...] |
H A D | rtt.h | 2 * util/rtt.h - UDP round trip time estimator for resend timeouts. 50 /** smoothed rtt estimator, in milliseconds */ 65 * @param rtt: The structure. Caller is responsible for allocation of it. 67 void rtt_init(struct rtt_info* rtt); 71 * @param rtt: round trip statistics structure. 74 int rtt_timeout(const struct rtt_info* rtt); 79 * @param rtt: round trip statistics structure. 82 int rtt_unclamped(const struct rtt_info* rtt); 86 * @param rtt: round trip statistics structure. 89 int rtt_notimeout(const struct rtt_info* rtt); [all...] |
/freebsd-11.0-release/sys/netinet/khelp/ |
H A D | h_ertt.h | 69 int rtt; member in struct:ertt
|
H A D | h_ertt.c | 354 e_t->rtt = tcp_ts_getticks() - txsi->tx_ts + 1; 356 if (e_t->rtt < e_t->minrtt || e_t->minrtt == 0) 357 e_t->minrtt = e_t->rtt; 359 if (e_t->rtt > e_t->maxrtt || e_t->maxrtt == 0) 360 e_t->maxrtt = e_t->rtt; 522 e_t->rtt = 0;
|
/freebsd-11.0-release/contrib/ofed/management/infiniband-diags/src/ |
H A D | ibping.c | 118 uint64_t start, rtt; local 135 rtt = getcurrenttime() - start; 142 data, portid2str(portid), rtt/1000, rtt%1000); 144 return rtt; 178 printf("rtt min/avg/max = %" PRIu64 ".%03" PRIu64 "/%" PRIu64 ".%03" PRIu64 "/%" PRIu64 ".%03" PRIu64 " ms\n", 196 uint64_t rtt; local 312 if ((rtt = ibping(&portid, flood)) == ~0ull) { 316 if (rtt < minrtt) 317 minrtt = rtt; [all...] |
/freebsd-11.0-release/contrib/unbound/services/cache/ |
H A D | infra.c | 2 * services/cache/infra.c - infrastructure cache, server rtt and capabilities 57 * even if another type has completely rtt maxed it, the different type 337 rtt_init(&data->rtt); 401 int old = ((struct infra_data*)e->data)->rtt.rto; 415 ((struct infra_data*)e->data)->rtt.rto 430 *to = rtt_timeout(&data->rtt); 438 *to = rtt_timeout(&data->rtt); 439 if(*to >= PROBE_MAXRTO && rtt_notimeout(&data->rtt)*4 <= *to) { 508 if(data->rtt.rto >= RTT_MAX_TIMEOUT) 511 data->rtt 569 infra_get_host_rto(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* nm, size_t nmlen, struct rtt_info* rtt, int* delay, time_t timenow, int* tA, int* tAAAA, int* tother) argument 626 infra_get_lame_rtt(struct infra_cache* infra, struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* name, size_t namelen, uint16_t qtype, int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow) argument [all...] |
H A D | infra.h | 2 * services/cache/infra.h - infrastructure cache, server rtt and capabilities 46 #include "util/rtt.h" 77 struct rtt_info rtt; member in struct:infra_data 208 * Lameness is empty. EDNS is 0 (try with first), and rtt is returned for 249 * Update rtt information for the host. 258 * @param orig_rtt: original rtt for the query that timed out (roundtrip==-1). 308 * @param rtt: if function returns true, this returns avg rtt of the server. 309 * The rtt value is unclamped and reflects recent timeouts. 316 int* lame, int* dnsseclame, int* reclame, int* rtt, time_ [all...] |
/freebsd-11.0-release/contrib/ldns/ |
H A D | resolver.c | 185 size_t *rtt; local 189 rtt = ldns_resolver_rtt(r); 195 return rtt[pos]; 255 size_t *rtt; local 261 rtt = ldns_resolver_rtt(r); 270 LDNS_FREE(rtt); 277 rtt = LDNS_XREALLOC(rtt, size_t, (ns_count - 1)); 280 ldns_resolver_set_rtt(r, rtt); 292 size_t *rtt; local 500 ldns_resolver_set_rtt(ldns_resolver *r, size_t *rtt) argument 508 size_t *rtt; local 1102 size_t *rtt; local 1409 size_t *rtt, tmprtt; local [all...] |
H A D | net.c | 476 size_t *rtt; local 488 rtt = ldns_resolver_rtt(r); 506 if (rtt[i] == LDNS_RESOLV_RTT_INF) {
|
/freebsd-11.0-release/sys/netinet/cc/ |
H A D | cc_chd.c | 110 /* The maximum round trip time seen within a measured rtt period. */ 239 int backoff, new_measurement, qdly, rtt; local 246 chd_data->maxrtt_in_rtt = imax(e_t->rtt, chd_data->maxrtt_in_rtt); 253 rtt = V_chd_use_max ? chd_data->maxrtt_in_rtt : e_t->rtt; 256 if (rtt && e_t->minrtt && !IN_RECOVERY(CCV(ccv, t_flags))) { 257 qdly = rtt - e_t->minrtt; 336 qdly = imax(e_t->rtt, chd_data->maxrtt_in_rtt) - e_t->minrtt;
|
H A D | cc_hd.c | 140 if (e_t->rtt && e_t->minrtt && V_hd_qthresh > 0) { 141 qdly = e_t->rtt - e_t->minrtt;
|
H A D | cc_cdg.c | 121 /* maximum measured rtt within an rtt period */ 123 /* maximum measured rtt within prev rtt period */ 125 /* minimum measured rtt within an rtt period */ 127 /* minimum measured rtt within prev rtt period */ 388 * It increases at 1pkt/rtt like Reno for alpha_inc rtts, and then 2pkts/rtt fo [all...] |
/freebsd-11.0-release/sys/netinet/ |
H A D | sctp_cc_functions.c | 257 if (net->rtt > net->cc_mod.rtcc.lbw_rtt + rtt_offset) { 259 * rtt increased we don't update bw.. so we don't update the 260 * rtt either. 267 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), 288 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), 301 if (net->rtt < net->cc_mod.rtcc.lbw_rtt - rtt_offset) { 303 * rtt decreased, there could be more room. we update both 304 * the bw and the rtt here to lock this in as a good step 312 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), 324 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), 573 uint64_t probepoint, rtt, vtag; local [all...] |
/freebsd-11.0-release/usr.bin/script/ |
H A D | script.c | 93 struct termios rtt, stt; local 214 rtt = tt; 215 cfmakeraw(&rtt); 216 rtt.c_lflag &= ~ECHO; 217 (void)tcsetattr(STDIN_FILENO, TCSAFLUSH, &rtt);
|
/freebsd-11.0-release/sys/netgraph/ |
H A D | ng_pptpgre.c | 156 int32_t rtt; /* round trip time estimate */ member in struct:ng_pptpgre_sess 743 diff = sample - hpriv->rtt; 744 hpriv->rtt += PPTP_ACK_ALPHA(diff); 749 hpriv->ato = hpriv->rtt + PPTP_ACK_CHI(hpriv->dev + 2); 867 hpriv->rtt = PPTP_ACK_DELTA(hpriv->rtt) + 1; /* +1 to avoid delta*0 case */ 868 hpriv->ato = hpriv->rtt + PPTP_ACK_CHI(hpriv->dev); 890 ackTimeout = (hpriv->rtt >> 2); 948 hpriv->rtt = PPTP_TIME_SCALE / 10; 950 hpriv->rtt * [all...] |
/freebsd-11.0-release/lib/libunbound/ |
H A D | Makefile | 25 parseutil.c random.c rbtree.c regional.c rrdef.c rrset.c rtt.c \
|
/freebsd-11.0-release/contrib/unbound/iterator/ |
H A D | iter_utils.c | 198 * Otherwise, an rtt in milliseconds. 201 * Note that util/rtt.c has a MIN_TIMEOUT of 50 msec, thus 230 int rtt, lame, reclame, dnsseclame; local 247 &rtt, now)) { 249 verbose(VERB_ALGO, " rtt=%d%s%s%s%s", rtt, 256 else if(rtt >= USEFUL_SERVER_TOP_TIMEOUT) 266 return rtt+USEFUL_SERVER_TOP_TIMEOUT*3; /* nonpref */ 268 return rtt+USEFUL_SERVER_TOP_TIMEOUT*2; /* nonpref */ 270 return rtt [all...] |
/freebsd-11.0-release/sys/net80211/ |
H A D | ieee80211_tdma.c | 585 int32_t rtt; 594 rtt = rstamp - (le64toh(tstamp) & 0x7fff); 595 if (rtt < 0) 596 rtt += 0x7fff; 599 "tdma rtt %5u [rstamp %5u tstamp %llu]\n", 600 rtt, rstamp,
|
/freebsd-11.0-release/sys/rpc/ |
H A D | clnt_dg.c | 345 int next_sendtime, starttime, rtt, time_waited, tv = 0; local 598 rtt = ticks - starttime + 1; 616 rt->rt_srtt = rtt; 617 rt->rt_deviate = rtt / 2; 619 int32_t error = rtt - rt->rt_srtt;
|
/freebsd-11.0-release/contrib/ldns/ldns/ |
H A D | resolver.h | 544 * \param[in] rtt a list with the times 546 void ldns_resolver_set_rtt(ldns_resolver *r, size_t *rtt); 553 * \param[in] value the rtt
|
/freebsd-11.0-release/contrib/unbound/services/ |
H A D | outside_network.c | 1429 int rtt, vs; local 1434 sq->zonelen, now, &vs, &edns_lame_known, &rtt)) 1436 sq->last_rtt = rtt; 1439 if(edns_lame_known == 0 && rtt > 5000 && rtt < 10001) { 1445 rtt = 1000; 1457 verbose(VERB_ALGO, "serviced query UDP timeout=%d msec", rtt); 1458 sq->pending = pending_udp_query(sq, buff, rtt, 1658 log_err("out of memory noting rtt."); 1695 int vs, rtt; local [all...] |
/freebsd-11.0-release/contrib/unbound/ |
H A D | Makefile.in | 109 util/rtt.c util/storage/dnstree.c util/storage/lookup3.c \ 122 random.lo rbtree.lo regional.lo rtt.lo dnstree.lo lookup3.lo lruhash.lo \ 608 $(srcdir)/util/storage/dnstree.h $(srcdir)/util/rbtree.h $(srcdir)/util/rtt.h $(srcdir)/util/storage/slabhash.h \ 647 $(srcdir)/util/rtt.h $(srcdir)/util/netevent.h $(srcdir)/util/net_help.h $(srcdir)/util/regional.h \ 691 $(srcdir)/services/cache/infra.h $(srcdir)/util/rtt.h $(srcdir)/services/cache/dns.h \ 729 $(srcdir)/util/rtt.h $(srcdir)/util/data/msgparse.h $(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h \ 745 $(srcdir)/services/modstack.h $(srcdir)/util/data/dname.h $(srcdir)/util/rtt.h $(srcdir)/services/cache/infra.h \ 759 $(srcdir)/util/rtt.h $(srcdir)/services/cache/rrset.h $(srcdir)/util/storage/slabhash.h $(srcdir)/dns64/dns64.h \ 794 rtt.lo rtt [all...] |
/freebsd-11.0-release/contrib/ldns-host/ |
H A D | ldns-host.c | 265 size_t *rtt = ldns_resolver_rtt(res); local 268 ldns_resolver_set_rtt(res, &rtt[nameserver]); 306 ldns_resolver_set_rtt(res, rtt);
|
/freebsd-11.0-release/contrib/unbound/daemon/ |
H A D | remote.c | 1291 rtt_init(&d->rtt); 2104 if(d->rtt.rto >= USEFUL_SERVER_TOP_TIMEOUT) { 2106 name, d->rtt.rto)) { 2113 if(!ssl_printf(a->ssl, "%s %s ttl %lu ping %d var %d rtt %d rto %d " 2117 d->rtt.srtt, d->rtt.rttvar, rtt_notimeout(&d->rtt), d->rtt.rto,
|
/freebsd-11.0-release/contrib/tcpdump/ |
H A D | print-sctp.c | 313 struct sctpHBrequest rtt; member in struct:sctpHBsender
|