MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bbr_is_lost

Function bbr_is_lost

freebsd/netinet/tcp_stacks/bbr.c:4287–4299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4285}
4286
4287static int
4288bbr_is_lost(struct tcp_bbr *bbr, struct bbr_sendmap *rsm, uint32_t cts)
4289{
4290 uint32_t thresh;
4291
4292 thresh = bbr_calc_thresh_rack(bbr, bbr_get_rtt(bbr, BBR_RTT_RACK),
4293 cts, rsm);
4294 if ((cts - rsm->r_tim_lastsent[(rsm->r_rtr_cnt - 1)]) >= thresh) {
4295 /* It is lost (past time) */
4296 return (1);
4297 }
4298 return (0);
4299}
4300
4301/*
4302 * Return a sendmap if we need to retransmit something.

Callers 3

bbr_check_recovery_modeFunction · 0.85
bbr_log_sack_passedFunction · 0.85
bbr_mtu_chgFunction · 0.85

Calls 2

bbr_calc_thresh_rackFunction · 0.85
bbr_get_rttFunction · 0.85

Tested by

no test coverage detected