Home
last modified time | relevance | path

Searched refs:rtt (Results 1 – 25 of 58) sorted by relevance

123

/netbsd/external/bsd/unbound/dist/util/
H A Drtt.c56 int rto = rtt->srtt + 4*rtt->rttvar; in calc_rto()
67 rtt->srtt = 0; in rtt_init()
69 rtt->rto = calc_rto(rtt); in rtt_init()
77 return rtt->rto; in rtt_timeout()
83 if(calc_rto(rtt) != rtt->rto) { in rtt_unclamped()
85 return rtt->rto; in rtt_unclamped()
88 return rtt->srtt + 4*rtt->rttvar; in rtt_unclamped()
98 rtt->rttvar += (delta - rtt->rttvar) / 4; /* h = 1/4 */ in rtt_update()
99 rtt->rto = calc_rto(rtt); in rtt_update()
108 if(rtt->rto < orig) in rtt_lost()
[all …]
H A Drtt.h67 void rtt_init(struct rtt_info* rtt);
74 int rtt_timeout(const struct rtt_info* rtt);
82 int rtt_unclamped(const struct rtt_info* rtt);
89 int rtt_notimeout(const struct rtt_info* rtt);
96 void rtt_update(struct rtt_info* rtt, int ms);
105 void rtt_lost(struct rtt_info* rtt, int orig);
/netbsd/external/bsd/unbound/dist/services/cache/
H A Dinfra.c388 rtt_init(&data->rtt); in data_entry_init()
483 *to = rtt_timeout(&data->rtt); in infra_host()
491 *to = rtt_timeout(&data->rtt); in infra_host()
595 data->rtt.rto = orig_rtt; in infra_rtt_update()
598 rtt_lost(&data->rtt, orig_rtt); in infra_rtt_update()
614 rtt_init(&data->rtt); in infra_rtt_update()
623 if(data->rtt.rto > 0) in infra_rtt_update()
624 rto = data->rtt.rto; in infra_rtt_update()
645 memmove(rtt, &data->rtt, sizeof(*rtt)); in infra_get_host_rto()
700 *rtt = rtt_unclamped(&host->rtt); in infra_get_lame_rtt()
[all …]
H A Dinfra.h82 struct rtt_info rtt; member
342 int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow);
362 size_t namelen, struct rtt_info* rtt, int* delay, time_t timenow,
/netbsd/sys/netinet/
H A Ddccp_tcplike.c170 if (cb->rtt == 0xffff) { in tcplike_rtt_sample()
172 cb->rtt = sample; in tcplike_rtt_sample()
173 cb->rto = cb->rtt << 1; in tcplike_rtt_sample()
178 if (sample >= cb->rtt) { in tcplike_rtt_sample()
179 err = sample - cb->rtt; in tcplike_rtt_sample()
180 cb->rtt = cb->rtt + (err >> 3); in tcplike_rtt_sample()
182 err = cb->rtt - sample; in tcplike_rtt_sample()
183 cb->rtt = cb->rtt - (err >> 3); in tcplike_rtt_sample()
186 if (cb->rtt < TCPLIKE_MIN_RTT) in tcplike_rtt_sample()
187 cb->rtt = TCPLIKE_MIN_RTT; in tcplike_rtt_sample()
[all …]
H A Dtcp_congctl.c865 tcp_cubic_getW(struct tcpcb *tp, uint32_t ms_elapsed, uint32_t rtt) in tcp_cubic_getW() argument
874 tK3 = (long)(ms_elapsed + rtt) - (long)K; in tcp_cubic_getW()
927 uint32_t ms_elapsed, rtt; in tcp_cubic_newack() local
937 (rtt = (tp->t_srtt << 5) / PR_SLOWHZ) > 0) { in tcp_cubic_newack()
942 ms_elapsed / rtt / 3; in tcp_cubic_newack()
946 tp->snd_cwnd += (tcp_cubic_getW(tp, ms_elapsed, rtt) - in tcp_cubic_newack()
H A Ddccp_tfrc.c316 cb->x_calc = *tfrc_calcX(cb->s, cb->rtt, &cb->p); in tfrc_updateX()
331 t_rtt.tv_usec = cb->rtt % 1000000; in tfrc_updateX()
332 t_rtt.tv_sec = cb->rtt / 1000000; in tfrc_updateX()
345 cb->x.denom *= cb->rtt; in tfrc_updateX()
417 v.denom *= cb->rtt; in tfrc_time_no_feedback()
683 if (cb->rtt) in tfrc_send_packet()
685 / cb->rtt / TFRC_WIN_COUNT_PER_RTT; in tfrc_send_packet()
924 cb->rtt = r_sample; in tfrc_send_packet_recv()
926 cb->rtt = (u_int32_t) (TFRC_RTT_FILTER_CONST * cb->rtt + in tfrc_send_packet_recv()
930 TFRC_DEBUG((LOG_INFO, "TFRC - New RTT estimate %u (tfrc_send_packet_recv)\n", cb->rtt)); in tfrc_send_packet_recv()
[all …]
H A Ddccp_tcplike.h59 u_int16_t rtt; /* estimated round trip-time */ member
H A Ddccp_tfrc.h89 u_int32_t rtt; /* Estimate of current round trip time */ member
/netbsd/tests/net/route/
H A Dt_change.sh136 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
155 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
203 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
222 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
270 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
289 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
H A Dt_route.sh238 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
254 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
270 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
288 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
313 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
328 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
344 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
362 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
/netbsd/usr.sbin/sysinst/
H A Drun.c421 struct termios rtt, tt; in launch_subwin() local
431 rtt = tt; in launch_subwin()
472 rtt = tt; in launch_subwin()
473 rtt.c_lflag |= (ICANON|ECHO); in launch_subwin()
474 (void)tcsetattr(slave, TCSANOW, &rtt); in launch_subwin()
560 if (!(rtt.c_lflag & ECHO)) in launch_subwin()
566 memcpy(&rtt, ibuf, sizeof(rtt)); in launch_subwin()
/netbsd/sys/dev/i2c/
H A Dcwfg.c138 u_int vcell, rtt, tmp; in cwfg_sensor_refresh() local
179 rtt = __SHIFTOUT(val, RTT_HI) << 8; in cwfg_sensor_refresh()
182 rtt |= __SHIFTOUT(val, RTT_LO); in cwfg_sensor_refresh()
184 if (rtt != 0x1fff) { in cwfg_sensor_refresh()
186 e->value_cur = rtt; /* minutes */ in cwfg_sensor_refresh()
/netbsd/usr.bin/script/
H A Dscript.c106 struct termios rtt; in main() local
182 rtt = tt; in main()
183 cfmakeraw(&rtt); in main()
184 rtt.c_lflag &= ~ECHO; in main()
185 (void)tcsetattr(STDIN_FILENO, TCSAFLUSH, &rtt); in main()
/netbsd/sys/dev/hyperv/
H A Dhvtimesync.c127 uint64_t hv_ns, vm_ns, rtt = 0; in do_timesync() local
131 rtt = hyperv_tc64() - sent_tc; in do_timesync()
133 hv_ns = (hvtime - VMBUS_ICMSG_TS_BASE + rtt) * HYPERV_TIMER_NS_FACTOR; in do_timesync()
/netbsd/sys/external/gpl2/dts/dist/arch/arm/boot/dts/
H A Dat91sam9260ek.dts117 atmel,wakeup-rtt-timer;
121 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
H A Dsama7g5.dtsi132 atmel,wakeup-rtt-timer;
136 rtt: rtt@e001d020 { label
137 compatible = "microchip,sama7g5-rtt", "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt";
H A Dat91sam9g20ek_common.dtsi122 atmel,wakeup-rtt-timer;
126 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
H A Dusb_a9260.dts27 atmel,wakeup-rtt-timer;
H A Dsam9x60.dtsi687 atmel,wakeup-rtt-timer;
691 rtt: rtt@fffffe20 { label
692 compatible = "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt";
/netbsd/external/mpl/bind/dist/bin/dig/
H A Dhost.c279 const char *rtt; in printsection() local
287 rtt = t->text; in printsection()
297 rtt = typebuf2; in printsection()
299 say_message(print_name, rtt, &rdata, in printsection()
/netbsd/sys/nfs/
H A Dnfsrtt.h57 int rtt; /* Measured round trip time */ member
/netbsd/external/bsd/unbound/dist/iterator/
H A Diter_utils.c230 int rtt, lame, reclame, dnsseclame; in iter_filter_unsuitable() local
247 &rtt, now)) { in iter_filter_unsuitable()
249 verbose(VERB_ALGO, " rtt=%d%s%s%s%s", rtt, in iter_filter_unsuitable()
256 else if(rtt >= USEFUL_SERVER_TOP_TIMEOUT) in iter_filter_unsuitable()
266 return rtt+USEFUL_SERVER_TOP_TIMEOUT*3; /* nonpref */ in iter_filter_unsuitable()
268 return rtt+USEFUL_SERVER_TOP_TIMEOUT*2; /* nonpref */ in iter_filter_unsuitable()
270 return rtt+USEFUL_SERVER_TOP_TIMEOUT+1; /* nonpref */ in iter_filter_unsuitable()
271 else return rtt; in iter_filter_unsuitable()
/netbsd/sbin/route/
H A Dkeywords.sh47 rtt
/netbsd/external/bsd/unbound/dist/contrib/
H A Dunbound-fuzzme.patch88 $(srcdir)/util/rtt.h $(srcdir)/services/authzone.h $(srcdir)/validator/val_kcache.h \
96 + $(srcdir)/util/rbtree.h $(srcdir)/util/rtt.h $(srcdir)/util/data/msgreply.h $(srcdir)/util/fptr_w…

123