Searched refs:rtt (Results 1 - 25 of 38) sorted by relevance

12

/freebsd-11-stable/contrib/unbound/util/
H A Drtt.c2 * util/rtt.c - UDP round trip time estimator for resend timeouts.
43 #include "util/rtt.h"
48 /** calculate RTO from rtt information */
50 calc_rto(const struct rtt_info* rtt) argument
53 int rto = rtt->srtt + 4*rtt->rttvar;
62 rtt_init(struct rtt_info* rtt) argument
64 rtt->srtt = 0;
65 rtt->rttvar = UNKNOWN_SERVER_NICENESS/4;
66 rtt
72 rtt_timeout(const struct rtt_info* rtt) argument
78 rtt_unclamped(const struct rtt_info* rtt) argument
89 rtt_update(struct rtt_info* rtt, int ms) argument
100 rtt_lost(struct rtt_info* rtt, int orig) argument
119 rtt_notimeout(const struct rtt_info* rtt) argument
[all...]
H A Drtt.h2 * 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-stable/sys/netinet/khelp/
H A Dh_ertt.h69 int rtt; member in struct:ertt
H A Dh_ertt.c354 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-stable/contrib/ofed/infiniband-diags/src/
H A Dibping.c114 uint64_t start, rtt; local
131 rtt = cl_get_time_stamp() - start;
138 data, portid2str(portid), rtt / 1000, rtt % 1000);
140 return rtt;
158 printf("rtt min/avg/max = %" PRIu64 ".%03" PRIu64 "/%" PRIu64 ".%03"
205 uint64_t rtt; local
265 if ((rtt = ibping(&portid, flood)) == ~0ull) {
269 if (rtt < minrtt)
270 minrtt = rtt;
[all...]
/freebsd-11-stable/contrib/ldns/
H A Dresolver.c185 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 Dnet.c476 size_t *rtt; local
488 rtt = ldns_resolver_rtt(r);
506 if (rtt[i] == LDNS_RESOLV_RTT_INF) {
/freebsd-11-stable/contrib/unbound/services/cache/
H A Dinfra.c2 * services/cache/infra.c - infrastructure cache, server rtt and capabilities
59 * even if another type has completely rtt maxed it, the different type
385 rtt_init(&data->rtt);
449 int old = ((struct infra_data*)e->data)->rtt.rto;
464 ((struct infra_data*)e->data)->rtt.rto
480 *to = rtt_timeout(&data->rtt);
488 *to = rtt_timeout(&data->rtt);
490 rtt_notimeout(&data->rtt)*4 <= *to)) {
559 if(data->rtt.rto >= RTT_MAX_TIMEOUT)
562 data->rtt
629 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
686 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 Dinfra.h2 * services/cache/infra.h - infrastructure cache, server rtt and capabilities
49 #include "util/rtt.h"
82 struct rtt_info rtt; member in struct:infra_data
234 * Lameness is empty. EDNS is 0 (try with first), and rtt is returned for
275 * Update rtt information for the host.
284 * @param orig_rtt: original rtt for the query that timed out (roundtrip==-1).
334 * @param rtt: if function returns true, this returns avg rtt of the server.
335 * The rtt value is unclamped and reflects recent timeouts.
342 int* lame, int* dnsseclame, int* reclame, int* rtt, time_
[all...]
/freebsd-11-stable/contrib/netbsd-tests/net/route/
H A Dt_change.sh129 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
148 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
196 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
215 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
263 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
282 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
H A Dt_route.sh236 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
252 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
268 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
286 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
311 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
326 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
342 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
360 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
/freebsd-11-stable/sys/netinet/cc/
H A Dcc_chd.c108 /* The maximum round trip time seen within a measured rtt period. */
237 int backoff, new_measurement, qdly, rtt; local
244 chd_data->maxrtt_in_rtt = imax(e_t->rtt, chd_data->maxrtt_in_rtt);
251 rtt = V_chd_use_max ? chd_data->maxrtt_in_rtt : e_t->rtt;
254 if (rtt && e_t->minrtt && !IN_RECOVERY(CCV(ccv, t_flags))) {
255 qdly = rtt - e_t->minrtt;
334 qdly = imax(e_t->rtt, chd_data->maxrtt_in_rtt) - e_t->minrtt;
H A Dcc_hd.c138 if (e_t->rtt && e_t->minrtt && V_hd_qthresh > 0) {
139 qdly = e_t->rtt - e_t->minrtt;
H A Dcc_cdg.c119 /* maximum measured rtt within an rtt period */
121 /* maximum measured rtt within prev rtt period */
123 /* minimum measured rtt within an rtt period */
125 /* minimum measured rtt within prev rtt period */
401 * It increases at 1pkt/rtt like Reno for alpha_inc rtts, and then 2pkts/rtt fo
[all...]
/freebsd-11-stable/tools/regression/sockets/udp_pingpong/
H A Dudp_pingpong.c97 struct rtt { struct
536 calc_rtt(struct test_pkt *tpp, struct rtt *rttp)
602 struct rtt rtt; local
606 calc_rtt(&test_ctx.test_pkts[i], &rtt);
607 if (!timespeccmp(&rtt.e2e, >, &rtt.a2b_b2a))
609 if (!timespeccmp(&rtt.e2e, <, &max_ts))
611 if (!timespeccmp(&rtt.a2b, >, &zero_ts))
613 if (!timespeccmp(&rtt
[all...]
/freebsd-11-stable/sys/netinet/
H A Dsctp_cc_functions.c258 if (net->rtt > net->cc_mod.rtcc.lbw_rtt + rtt_offset) {
260 * rtt increased we don't update bw.. so we don't update the
261 * rtt either.
268 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt),
289 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt),
302 if (net->rtt < net->cc_mod.rtcc.lbw_rtt - rtt_offset) {
304 * rtt decreased, there could be more room. we update both
305 * the bw and the rtt here to lock this in as a good step
313 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt),
325 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt),
574 uint64_t probepoint, rtt, vtag; local
[all...]
/freebsd-11-stable/sys/dev/hyperv/utilities/
H A Dvmbus_timesync.c116 uint64_t hv_ns, vm_ns, rtt = 0; local
119 rtt = hyperv_tc64() - sent_tc;
121 hv_ns = (hvtime - VMBUS_ICMSG_TS_BASE + rtt) * HYPERV_TIMER_NS_FACTOR;
/freebsd-11-stable/usr.bin/script/
H A Dscript.c93 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-stable/sys/net80211/
H A Dieee80211_tdma.c588 int32_t rtt;
597 rtt = rstamp - (le64toh(tstamp) & 0x7fff);
598 if (rtt < 0)
599 rtt += 0x7fff;
602 "tdma rtt %5u [rstamp %5u tstamp %llu]\n",
603 rtt, rstamp,
/freebsd-11-stable/sys/netgraph/
H A Dng_pptpgre.c187 int32_t rtt; /* round trip time estimate */ member in struct:ng_pptpgre_sess
848 diff = sample - hpriv->rtt;
849 hpriv->rtt += PPTP_ACK_ALPHA(diff);
854 hpriv->ato = hpriv->rtt + PPTP_ACK_CHI(hpriv->dev + 2);
1096 hpriv->rtt = PPTP_ACK_DELTA(hpriv->rtt) + 1; /* +1 to avoid delta*0 case */
1097 hpriv->ato = hpriv->rtt + PPTP_ACK_CHI(hpriv->dev);
1119 ackTimeout = (hpriv->rtt >> 2);
1241 hpriv->rtt = PPTP_TIME_SCALE / 10;
1243 hpriv->rtt *
[all...]
/freebsd-11-stable/lib/libunbound/
H A DMakefile27 regional.c respip.c rpz.c rrdef.c rrset.c rtt.c sbuffer.c slabhash.c \
/freebsd-11-stable/contrib/unbound/iterator/
H A Diter_utils.c198 * 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-stable/sys/rpc/
H A Dclnt_dg.c350 int next_sendtime, starttime, rtt, time_waited, tv = 0; local
602 rtt = ticks - starttime + 1;
620 rt->rt_srtt = rtt;
621 rt->rt_deviate = rtt / 2;
623 int32_t error = rtt - rt->rt_srtt;
/freebsd-11-stable/contrib/ldns/ldns/
H A Dresolver.h544 * \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-stable/contrib/ldns-host/
H A Dldns-host.c278 size_t *rtt = ldns_resolver_rtt(res); local
281 ldns_resolver_set_rtt(res, &rtt[nameserver]);
319 ldns_resolver_set_rtt(res, rtt);

Completed in 624 milliseconds

12