Lines Matching refs:thflags
622 int thflags; in tcp_input_with_port() local
800 thflags = tcp_get_flags(th); in tcp_input_with_port()
834 ((thflags & (TH_ACK|TH_SYN)) == TH_SYN ? in tcp_input_with_port()
914 if ((V_tcp_log_in_vain == 1 && (thflags & TH_SYN)) || in tcp_input_with_port()
998 (thflags & TH_SYN) ? TO_SYN : 0); in tcp_input_with_port()
1067 if ((thflags & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK) { in tcp_input_with_port()
1171 if (thflags & TH_RST) { in tcp_input_with_port()
1178 if ((thflags & TH_SYN) == 0) { in tcp_input_with_port()
1189 if (thflags & TH_ACK) { in tcp_input_with_port()
1210 if ((thflags & TH_FIN) && V_drop_synfin) { in tcp_input_with_port()
1225 KASSERT((thflags & (TH_RST|TH_ACK)) == 0, in tcp_input_with_port()
1227 KASSERT(thflags & (TH_SYN), in tcp_input_with_port()
1368 tcp_dooptions(&to, optp, optlen, thflags); in tcp_input_with_port()
1404 ((V_blackhole == 1 && (thflags & TH_SYN)) || V_blackhole > 1))) && in tcp_input_with_port()
1523 uint16_t thflags; in tcp_do_segment() local
1538 thflags = tcp_get_flags(th); in tcp_do_segment()
1557 if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) { in tcp_do_segment()
1571 if ((tp->t_state == TCPS_SYN_SENT) && (thflags & TH_ACK) && in tcp_do_segment()
1590 if (thflags & TH_FIN) in tcp_do_segment()
1604 if (tcp_ecn_input_segment(tp, thflags, tlen, in tcp_do_segment()
1614 (thflags & TH_SYN) ? TO_SYN : 0); in tcp_do_segment()
1646 if (tp->t_state == TCPS_SYN_SENT && (thflags & TH_SYN)) { in tcp_do_segment()
1648 tcp_ecn_input_parallel_syn(tp, thflags, iptos); in tcp_do_segment()
1702 if (((thflags & TH_RST) != 0) || V_tcp_tolerate_missing_ts) { in tcp_do_segment()
1751 (thflags & (TH_SYN|TH_FIN|TH_RST|TH_URG|TH_ACK)) == TH_ACK && in tcp_do_segment()
1968 if (thflags & TH_RST) { in tcp_do_segment()
1972 if ((thflags & TH_ACK) && in tcp_do_segment()
1987 if ((thflags & (TH_SYN|TH_ACK)) == (TH_SYN|TH_ACK)) { in tcp_do_segment()
1991 } else if (thflags & TH_SYN) { in tcp_do_segment()
1996 } else if (!(thflags & (TH_ACK|TH_FIN|TH_RST))) { in tcp_do_segment()
2018 if ((thflags & (TH_ACK|TH_RST)) == (TH_ACK|TH_RST)) { in tcp_do_segment()
2024 if (thflags & TH_RST) in tcp_do_segment()
2026 if (!(thflags & TH_SYN)) in tcp_do_segment()
2031 if (thflags & TH_ACK) { in tcp_do_segment()
2068 tcp_ecn_input_syn_sent(tp, thflags, iptos); in tcp_do_segment()
2081 thflags &= ~TH_SYN; in tcp_do_segment()
2114 thflags &= ~TH_FIN; in tcp_do_segment()
2127 if (thflags & TH_ACK) in tcp_do_segment()
2148 if (thflags & TH_RST) { in tcp_do_segment()
2201 if ((thflags & TH_SYN) && tp->t_state != TCPS_SYN_SENT && in tcp_do_segment()
2211 tcp_ecn_input_syn_sent(tp, thflags, iptos); in tcp_do_segment()
2263 if (thflags & TH_SYN) { in tcp_do_segment()
2264 thflags &= ~TH_SYN; in tcp_do_segment()
2269 thflags &= ~TH_URG; in tcp_do_segment()
2276 || (todrop == tlen && (thflags & TH_FIN) == 0)) { in tcp_do_segment()
2282 thflags &= ~TH_FIN; in tcp_do_segment()
2314 thflags &= ~TH_URG; in tcp_do_segment()
2367 thflags &= ~(TH_PUSH|TH_FIN); in tcp_do_segment()
2391 ((thflags & (TH_SYN|TH_FIN)) != 0))) { in tcp_do_segment()
2401 if ((thflags & TH_ACK) == 0) { in tcp_do_segment()
2523 if (tlen == 0 && (thflags & TH_FIN) == 0) { in tcp_do_segment()
2579 if ((thflags & TH_FIN) && in tcp_do_segment()
3096 if ((thflags & TH_ACK) && in tcp_do_segment()
3115 if ((thflags & TH_URG) && th->th_urp && in tcp_do_segment()
3126 thflags &= ~TH_URG; /* XXX */ in tcp_do_segment()
3187 if ((tlen || (thflags & TH_FIN) || (tfo_syn && tlen > 0)) && in tcp_do_segment()
3223 thflags = tcp_get_flags(th) & TH_FIN; in tcp_do_segment()
3241 thflags = tcp_reass(tp, th, &temp, &tlen, m); in tcp_do_segment()
3293 if ((thflags & TH_FIN) != 0) { in tcp_do_segment()
3309 if ((thflags & TH_FIN) != 0) { in tcp_do_segment()
3321 thflags &= ~TH_FIN; in tcp_do_segment()
3328 if (thflags & TH_FIN) { in tcp_do_segment()
3409 if (tp->t_state == TCPS_SYN_RECEIVED && (thflags & TH_ACK) && in tcp_do_segment()