| 2824 | } |
| 2825 | |
| 2826 | static void |
| 2827 | bbr_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. |
no test coverage detected