/freebsd-10.3-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-10.3-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-10.3-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-10.3-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-10.3-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-10.3-release/sys/netinet/cc/ |
H A D | cc_chd.c | 111 /* The maximum round trip time seen within a measured rtt period. */ 240 int backoff, new_measurement, qdly, rtt; local 247 chd_data->maxrtt_in_rtt = imax(e_t->rtt, chd_data->maxrtt_in_rtt); 254 rtt = V_chd_use_max ? chd_data->maxrtt_in_rtt : e_t->rtt; 257 if (rtt && e_t->minrtt && !IN_RECOVERY(CCV(ccv, t_flags))) { 258 qdly = rtt - e_t->minrtt; 337 qdly = imax(e_t->rtt, chd_data->maxrtt_in_rtt) - e_t->minrtt;
|
H A D | cc_hd.c | 141 if (e_t->rtt && e_t->minrtt && V_hd_qthresh > 0) { 142 qdly = e_t->rtt - e_t->minrtt;
|
H A D | cc_cdg.c | 122 /* maximum measured rtt within an rtt period */ 124 /* maximum measured rtt within prev rtt period */ 126 /* minimum measured rtt within an rtt period */ 128 /* minimum measured rtt within prev rtt period */ 389 * It increases at 1pkt/rtt like Reno for alpha_inc rtts, and then 2pkts/rtt fo [all...] |
/freebsd-10.3-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...] |
H A D | tcp_input.c | 327 int rtt; local 333 if (tp->t_srtt == 0 && (rtt = metrics.rmx_rtt)) { 334 tp->t_srtt = rtt; 341 /* default variation is +- 1 rtt */ 1673 * Recalculate the transmit timer / rtt. 2755 * Since we now have an rtt measurement, cancel the 3431 tcp_xmit_timer(struct tcpcb *tp, int rtt) argument 3444 * an alpha of .875 (srtt = rtt/8 + srtt*7/8 in fixed 3445 * point). Adjust rtt to origin 0. 3447 delta = ((rtt [all...] |
/freebsd-10.3-release/usr.bin/script/ |
H A D | script.c | 94 struct termios rtt, stt; local 213 rtt = tt; 214 cfmakeraw(&rtt); 215 rtt.c_lflag &= ~ECHO; 216 (void)tcsetattr(STDIN_FILENO, TCSAFLUSH, &rtt);
|
/freebsd-10.3-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-10.3-release/lib/libunbound/ |
H A D | Makefile | 24 rrset.c rtt.c sbuffer.c slabhash.c str2wire.c timehist.c tube.c \
|
/freebsd-10.3-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-10.3-release/sys/net80211/ |
H A D | ieee80211_tdma.c | 584 int32_t rtt; 593 rtt = rstamp - (le64toh(tstamp) & 0x7fff); 594 if (rtt < 0) 595 rtt += 0x7fff; 598 "tdma rtt %5u [rstamp %5u tstamp %llu]\n", 599 rtt, rstamp,
|
/freebsd-10.3-release/contrib/tcpdump/ |
H A D | sctpHeader.h | 219 struct sctpHBrequest rtt; member in struct:sctpHBsender
|
/freebsd-10.3-release/sys/rpc/ |
H A D | clnt_dg.c | 347 int next_sendtime, starttime, rtt, time_waited, tv = 0; local 600 rtt = ticks - starttime + 1; 618 rt->rt_srtt = rtt; 619 rt->rt_deviate = rtt / 2; 621 int32_t error = rtt - rt->rt_srtt;
|
/freebsd-10.3-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-10.3-release/contrib/unbound/services/ |
H A D | outside_network.c | 1413 int rtt, vs; local 1418 sq->zonelen, now, &vs, &edns_lame_known, &rtt)) 1420 sq->last_rtt = rtt; 1423 if(edns_lame_known == 0 && rtt > 5000 && rtt < 10001) { 1429 rtt = 1000; 1441 verbose(VERB_ALGO, "serviced query UDP timeout=%d msec", rtt); 1442 sq->pending = pending_udp_query(sq, buff, rtt, 1642 log_err("out of memory noting rtt."); 1679 int vs, rtt; local [all...] |
/freebsd-10.3-release/contrib/unbound/ |
H A D | Makefile.in | 108 util/rtt.c util/storage/dnstree.c util/storage/lookup3.c \ 121 random.lo rbtree.lo regional.lo rtt.lo dnstree.lo lookup3.lo lruhash.lo \ 607 $(srcdir)/util/storage/dnstree.h $(srcdir)/util/rbtree.h $(srcdir)/util/rtt.h $(srcdir)/util/storage/slabhash.h \ 646 $(srcdir)/util/rtt.h $(srcdir)/util/netevent.h $(srcdir)/util/net_help.h $(srcdir)/util/regional.h \ 690 $(srcdir)/services/cache/infra.h $(srcdir)/util/rtt.h $(srcdir)/services/cache/dns.h \ 728 $(srcdir)/util/rtt.h $(srcdir)/util/data/msgparse.h $(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h \ 744 $(srcdir)/services/modstack.h $(srcdir)/util/data/dname.h $(srcdir)/util/rtt.h $(srcdir)/services/cache/infra.h \ 758 $(srcdir)/util/rtt.h $(srcdir)/services/cache/rrset.h $(srcdir)/util/storage/slabhash.h $(srcdir)/dns64/dns64.h \ 793 rtt.lo rtt [all...] |
/freebsd-10.3-release/contrib/ldns-host/ |
H A D | ldns-host.c | 170 size_t *rtt = ldns_resolver_rtt(res); local 173 ldns_resolver_set_rtt(res, &rtt[nameserver]); 185 ldns_resolver_set_rtt(res, rtt);
|