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

Function bbr_log_pkt_epoch

freebsd/netinet/tcp_stacks/bbr.c:2020–2043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2018}
2019
2020static void
2021bbr_log_pkt_epoch(struct tcp_bbr *bbr, uint32_t cts, uint32_t line,
2022 uint32_t lost, uint32_t del)
2023{
2024 if (bbr->rc_tp->t_logstate != TCP_LOG_STATE_OFF) {
2025 union tcp_log_stackspecific log;
2026
2027 bbr_fill_in_logging_data(bbr, &log.u_bbr, cts);
2028 log.u_bbr.flex1 = lost;
2029 log.u_bbr.flex2 = del;
2030 log.u_bbr.flex3 = bbr->r_ctl.rc_bbr_lastbtlbw;
2031 log.u_bbr.flex4 = bbr->r_ctl.rc_pkt_epoch_rtt;
2032 log.u_bbr.flex5 = bbr->r_ctl.rc_bbr_last_startup_epoch;
2033 log.u_bbr.flex6 = bbr->r_ctl.rc_lost_at_startup;
2034 log.u_bbr.flex7 = line;
2035 log.u_bbr.flex8 = 0;
2036 log.u_bbr.inflight = bbr->r_ctl.r_measurement_count;
2037 TCP_LOG_EVENTP(bbr->rc_tp, NULL,
2038 &bbr->rc_inp->inp_socket->so_rcv,
2039 &bbr->rc_inp->inp_socket->so_snd,
2040 BBR_LOG_PKT_EPOCH, 0,
2041 0, &log, false, &bbr->rc_tv);
2042 }
2043}
2044
2045static void
2046bbr_log_time_epoch(struct tcp_bbr *bbr, uint32_t cts, uint32_t line, uint32_t epoch_time)

Callers 1

bbr_set_pktepochFunction · 0.85

Calls 1

bbr_fill_in_logging_dataFunction · 0.85

Tested by

no test coverage detected