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

Function bbr_log_settings_change

freebsd/netinet/tcp_stacks/bbr.c:2826–2847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2824}
2825
2826static void
2827bbr_log_settings_change(struct tcp_bbr *bbr, int settings_desired)
2828{
2829 if (bbr_verbose_logging && (bbr->rc_tp->t_logstate != TCP_LOG_STATE_OFF)) {
2830 union tcp_log_stackspecific log;
2831
2832 bbr_fill_in_logging_data(bbr, &log.u_bbr, bbr->r_ctl.rc_rcvtime);
2833 /* R-HU */
2834 log.u_bbr.flex1 = 0;
2835 log.u_bbr.flex2 = 0;
2836 log.u_bbr.flex3 = 0;
2837 log.u_bbr.flex4 = 0;
2838 log.u_bbr.flex7 = 0;
2839 log.u_bbr.flex8 = settings_desired;
2840
2841 TCP_LOG_EVENTP(bbr->rc_tp, NULL,
2842 &bbr->rc_inp->inp_socket->so_rcv,
2843 &bbr->rc_inp->inp_socket->so_snd,
2844 BBR_LOG_SETTINGS_CHG, 0,
2845 0, &log, false, &bbr->rc_tv);
2846 }
2847}
2848
2849/*
2850 * Returns the bw from the our filter.

Callers 1

bbr_initFunction · 0.85

Calls 1

bbr_fill_in_logging_dataFunction · 0.85

Tested by

no test coverage detected