Lines Matching refs:thflags

7681     int32_t * ofia, int32_t thflags, int32_t * ret_val)  in bbr_process_ack()  argument
7727 ctf_do_dropafterack(m, tp, th, thflags, tlen, ret_val); in bbr_process_ack()
7733 ctf_do_dropafterack(m, tp, th, thflags, tlen, ret_val); in bbr_process_ack()
8137 uint32_t tiwin, int32_t thflags, int32_t nxt_pkt) in bbr_process_data() argument
8150 if ((thflags & TH_ACK) && in bbr_process_data()
8164 } else if (thflags & TH_ACK) { in bbr_process_data()
8221 if ((tlen || (thflags & TH_FIN) || (tfo_syn && tlen > 0)) && in bbr_process_data()
8276 thflags = tcp_get_flags(th) & TH_FIN; in bbr_process_data()
8304 thflags = tcp_reass(tp, th, &temp, &tlen, m); in bbr_process_data()
8347 thflags &= ~TH_FIN; in bbr_process_data()
8354 if (thflags & TH_FIN) { in bbr_process_data()
8740 uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos) in bbr_do_syn_sent() argument
8762 if ((thflags & TH_ACK) && in bbr_do_syn_sent()
8769 if ((thflags & (TH_ACK | TH_RST)) == (TH_ACK | TH_RST)) { in bbr_do_syn_sent()
8776 if (thflags & TH_RST) { in bbr_do_syn_sent()
8780 if (!(thflags & TH_SYN)) { in bbr_do_syn_sent()
8786 if (thflags & TH_ACK) { in bbr_do_syn_sent()
8852 thflags &= ~TH_SYN; in bbr_do_syn_sent()
8880 thflags &= ~TH_FIN; in bbr_do_syn_sent()
8892 if (thflags & TH_ACK) { in bbr_do_syn_sent()
8908 if (bbr_process_ack(m, th, so, tp, to, tiwin, tlen, &ourfinisacked, thflags, &ret_val)) in bbr_do_syn_sent()
8940 tiwin, thflags, nxt_pkt)); in bbr_do_syn_sent()
8951 uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos) in bbr_do_syn_recv() argument
8961 if ((thflags & TH_RST) || in bbr_do_syn_recv()
8962 (tp->t_fin_is_rst && (thflags & TH_FIN))) in bbr_do_syn_recv()
8964 if ((thflags & TH_ACK) && in bbr_do_syn_recv()
8978 if ((thflags & (TH_SYN | TH_ACK)) == (TH_SYN | TH_ACK)) { in bbr_do_syn_recv()
8982 } else if (thflags & TH_SYN) { in bbr_do_syn_recv()
8990 } else if (!(thflags & (TH_ACK | TH_FIN | TH_RST))) { in bbr_do_syn_recv()
9001 if (ctf_ts_check(m, th, tp, tlen, thflags, &ret_val)) in bbr_do_syn_recv()
9016 if (ctf_drop_checks(to, m, th, tp, &tlen, &thflags, &drop_hdrlen, &ret_val)) { in bbr_do_syn_recv()
9036 ((thflags & (TH_SYN | TH_FIN)) != 0))) { in bbr_do_syn_recv()
9046 if ((thflags & TH_ACK) == 0) { in bbr_do_syn_recv()
9051 tiwin, thflags, nxt_pkt)); in bbr_do_syn_recv()
9082 if (thflags & TH_ACK) in bbr_do_syn_recv()
9120 if (tlen == 0 && (thflags & TH_FIN) == 0) { in bbr_do_syn_recv()
9130 if (bbr_process_ack(m, th, so, tp, to, tiwin, tlen, &ourfinisacked, thflags, &ret_val)) { in bbr_do_syn_recv()
9161 tiwin, thflags, nxt_pkt)); in bbr_do_syn_recv()
9172 uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos) in bbr_do_established() argument
9203 __predict_true((thflags & (TH_SYN | TH_FIN | TH_RST | TH_URG | TH_ACK)) == TH_ACK) && in bbr_do_established()
9220 if ((thflags & TH_RST) || in bbr_do_established()
9221 (tp->t_fin_is_rst && (thflags & TH_FIN))) in bbr_do_established()
9227 if (thflags & TH_SYN) { in bbr_do_established()
9237 if (ctf_ts_check(m, th, tp, tlen, thflags, &ret_val)) in bbr_do_established()
9240 if (ctf_drop_checks(to, m, th, tp, &tlen, &thflags, &drop_hdrlen, &ret_val)) { in bbr_do_established()
9260 ((thflags & (TH_SYN | TH_FIN)) != 0))) { in bbr_do_established()
9269 if ((thflags & TH_ACK) == 0) { in bbr_do_established()
9272 tiwin, thflags, nxt_pkt)); in bbr_do_established()
9274 ctf_do_dropafterack(m, tp, th, thflags, tlen, &ret_val); in bbr_do_established()
9285 if (bbr_process_ack(m, th, so, tp, to, tiwin, tlen, NULL, thflags, &ret_val)) { in bbr_do_established()
9297 tiwin, thflags, nxt_pkt)); in bbr_do_established()
9308 uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos) in bbr_do_close_wait() argument
9317 if ((thflags & TH_RST) || in bbr_do_close_wait()
9318 (tp->t_fin_is_rst && (thflags & TH_FIN))) in bbr_do_close_wait()
9324 if (thflags & TH_SYN) { in bbr_do_close_wait()
9334 if (ctf_ts_check(m, th, tp, tlen, thflags, &ret_val)) in bbr_do_close_wait()
9337 if (ctf_drop_checks(to, m, th, tp, &tlen, &thflags, &drop_hdrlen, &ret_val)) { in bbr_do_close_wait()
9357 ((thflags & (TH_SYN | TH_FIN)) != 0))) { in bbr_do_close_wait()
9366 if ((thflags & TH_ACK) == 0) { in bbr_do_close_wait()
9369 tiwin, thflags, nxt_pkt)); in bbr_do_close_wait()
9371 ctf_do_dropafterack(m, tp, th, thflags, tlen, &ret_val); in bbr_do_close_wait()
9382 if (bbr_process_ack(m, th, so, tp, to, tiwin, tlen, NULL, thflags, &ret_val)) { in bbr_do_close_wait()
9393 tiwin, thflags, nxt_pkt)); in bbr_do_close_wait()
9429 uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos) in bbr_do_fin_wait_1() argument
9439 if ((thflags & TH_RST) || in bbr_do_fin_wait_1()
9440 (tp->t_fin_is_rst && (thflags & TH_FIN))) in bbr_do_fin_wait_1()
9446 if (thflags & TH_SYN) { in bbr_do_fin_wait_1()
9456 if (ctf_ts_check(m, th, tp, tlen, thflags, &ret_val)) in bbr_do_fin_wait_1()
9459 if (ctf_drop_checks(to, m, th, tp, &tlen, &thflags, &drop_hdrlen, &ret_val)) { in bbr_do_fin_wait_1()
9488 ((thflags & (TH_SYN | TH_FIN)) != 0))) { in bbr_do_fin_wait_1()
9497 if ((thflags & TH_ACK) == 0) { in bbr_do_fin_wait_1()
9500 tiwin, thflags, nxt_pkt)); in bbr_do_fin_wait_1()
9502 ctf_do_dropafterack(m, tp, th, thflags, tlen, &ret_val); in bbr_do_fin_wait_1()
9513 if (bbr_process_ack(m, th, so, tp, to, tiwin, tlen, &ourfinisacked, thflags, &ret_val)) { in bbr_do_fin_wait_1()
9543 tiwin, thflags, nxt_pkt)); in bbr_do_fin_wait_1()
9554 uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos) in bbr_do_closing() argument
9564 if ((thflags & TH_RST) || in bbr_do_closing()
9565 (tp->t_fin_is_rst && (thflags & TH_FIN))) in bbr_do_closing()
9571 if (thflags & TH_SYN) { in bbr_do_closing()
9581 if (ctf_ts_check(m, th, tp, tlen, thflags, &ret_val)) in bbr_do_closing()
9584 if (ctf_drop_checks(to, m, th, tp, &tlen, &thflags, &drop_hdrlen, &ret_val)) { in bbr_do_closing()
9604 ((thflags & (TH_SYN | TH_FIN)) != 0))) { in bbr_do_closing()
9613 if ((thflags & TH_ACK) == 0) { in bbr_do_closing()
9616 tiwin, thflags, nxt_pkt)); in bbr_do_closing()
9618 ctf_do_dropafterack(m, tp, th, thflags, tlen, &ret_val); in bbr_do_closing()
9629 if (bbr_process_ack(m, th, so, tp, to, tiwin, tlen, &ourfinisacked, thflags, &ret_val)) { in bbr_do_closing()
9645 tiwin, thflags, nxt_pkt)); in bbr_do_closing()
9656 uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos) in bbr_do_lastack() argument
9666 if ((thflags & TH_RST) || in bbr_do_lastack()
9667 (tp->t_fin_is_rst && (thflags & TH_FIN))) in bbr_do_lastack()
9673 if (thflags & TH_SYN) { in bbr_do_lastack()
9683 if (ctf_ts_check(m, th, tp, tlen, thflags, &ret_val)) in bbr_do_lastack()
9686 if (ctf_drop_checks(to, m, th, tp, &tlen, &thflags, &drop_hdrlen, &ret_val)) { in bbr_do_lastack()
9706 ((thflags & (TH_SYN | TH_FIN)) != 0))) { in bbr_do_lastack()
9715 if ((thflags & TH_ACK) == 0) { in bbr_do_lastack()
9718 tiwin, thflags, nxt_pkt)); in bbr_do_lastack()
9720 ctf_do_dropafterack(m, tp, th, thflags, tlen, &ret_val); in bbr_do_lastack()
9731 if (bbr_process_ack(m, th, so, tp, to, tiwin, tlen, &ourfinisacked, thflags, &ret_val)) { in bbr_do_lastack()
9747 tiwin, thflags, nxt_pkt)); in bbr_do_lastack()
9758 uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos) in bbr_do_fin_wait_2() argument
9769 if ((thflags & TH_RST) || in bbr_do_fin_wait_2()
9770 (tp->t_fin_is_rst && (thflags & TH_FIN))) in bbr_do_fin_wait_2()
9777 if (thflags & TH_SYN) { in bbr_do_fin_wait_2()
9787 if (ctf_ts_check(m, th, tp, tlen, thflags, &ret_val)) in bbr_do_fin_wait_2()
9790 if (ctf_drop_checks(to, m, th, tp, &tlen, &thflags, &drop_hdrlen, &ret_val)) { in bbr_do_fin_wait_2()
9820 ((thflags & (TH_SYN | TH_FIN)) != 0))) { in bbr_do_fin_wait_2()
9829 if ((thflags & TH_ACK) == 0) { in bbr_do_fin_wait_2()
9832 tiwin, thflags, nxt_pkt)); in bbr_do_fin_wait_2()
9834 ctf_do_dropafterack(m, tp, th, thflags, tlen, &ret_val); in bbr_do_fin_wait_2()
9845 if (bbr_process_ack(m, th, so, tp, to, tiwin, tlen, &ourfinisacked, thflags, &ret_val)) { in bbr_do_fin_wait_2()
9856 tiwin, thflags, nxt_pkt)); in bbr_do_fin_wait_2()
11282 int32_t thflags, retval; in bbr_do_segment_nounlock() local
11299 thflags = tcp_get_flags(th); in bbr_do_segment_nounlock()
11350 (thflags & TH_SYN) ? TO_SYN : 0); in bbr_do_segment_nounlock()
11367 ((thflags & TH_RST) == 0) && (V_tcp_tolerate_missing_ts == 0)) { in bbr_do_segment_nounlock()
11401 if (tp->t_state == TCPS_SYN_SENT && (thflags & TH_SYN)) { in bbr_do_segment_nounlock()
11460 if (thflags & TH_ACK) { in bbr_do_segment_nounlock()
11472 if (thflags & TH_FIN) in bbr_do_segment_nounlock()
11501 if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) { in bbr_do_segment_nounlock()
11510 if ((tp->t_state == TCPS_SYN_SENT) && (thflags & TH_ACK) && in bbr_do_segment_nounlock()
11530 tlen, tiwin, thflags, nxt_pkt, iptos); in bbr_do_segment_nounlock()