Lines Matching refs:thflags

629 	int thflags;  in tcp_input_with_port()  local
807 thflags = tcp_get_flags(th); in tcp_input_with_port()
841 ((thflags & (TH_ACK|TH_SYN)) == TH_SYN ? in tcp_input_with_port()
922 if ((V_tcp_log_in_vain == 1 && (thflags & TH_SYN)) || in tcp_input_with_port()
1006 (thflags & TH_SYN) ? TO_SYN : 0); in tcp_input_with_port()
1075 if ((thflags & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK) { in tcp_input_with_port()
1179 if (thflags & TH_RST) { in tcp_input_with_port()
1186 if ((thflags & TH_SYN) == 0) { in tcp_input_with_port()
1197 if (thflags & TH_ACK) { in tcp_input_with_port()
1218 if ((thflags & TH_FIN) && V_drop_synfin) { in tcp_input_with_port()
1233 KASSERT((thflags & (TH_RST|TH_ACK)) == 0, in tcp_input_with_port()
1235 KASSERT(thflags & (TH_SYN), in tcp_input_with_port()
1367 tcp_dooptions(&to, optp, optlen, thflags); in tcp_input_with_port()
1403 ((V_blackhole == 1 && (thflags & TH_SYN)) || V_blackhole > 1))) && in tcp_input_with_port()
1522 uint16_t thflags; in tcp_do_segment() local
1537 thflags = tcp_get_flags(th); in tcp_do_segment()
1556 if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) { in tcp_do_segment()
1570 if ((tp->t_state == TCPS_SYN_SENT) && (thflags & TH_ACK) && in tcp_do_segment()
1589 if (thflags & TH_FIN) in tcp_do_segment()
1603 if (tcp_ecn_input_segment(tp, thflags, tlen, in tcp_do_segment()
1613 (thflags & TH_SYN) ? TO_SYN : 0); in tcp_do_segment()
1648 if (tp->t_state == TCPS_SYN_SENT && (thflags & TH_SYN)) { in tcp_do_segment()
1650 tcp_ecn_input_parallel_syn(tp, thflags, iptos); in tcp_do_segment()
1711 if (((thflags & TH_RST) != 0) || V_tcp_tolerate_missing_ts) { in tcp_do_segment()
1760 (thflags & (TH_SYN|TH_FIN|TH_RST|TH_URG|TH_ACK)) == TH_ACK && in tcp_do_segment()
1981 if (thflags & TH_RST) { in tcp_do_segment()
1985 if ((thflags & TH_ACK) && in tcp_do_segment()
2000 if ((thflags & (TH_SYN|TH_ACK)) == (TH_SYN|TH_ACK)) { in tcp_do_segment()
2004 } else if (thflags & TH_SYN) { in tcp_do_segment()
2009 } else if (!(thflags & (TH_ACK|TH_FIN|TH_RST))) { in tcp_do_segment()
2031 if ((thflags & (TH_ACK|TH_RST)) == (TH_ACK|TH_RST)) { in tcp_do_segment()
2037 if (thflags & TH_RST) in tcp_do_segment()
2039 if (!(thflags & TH_SYN)) in tcp_do_segment()
2044 if (thflags & TH_ACK) { in tcp_do_segment()
2081 tcp_ecn_input_syn_sent(tp, thflags, iptos); in tcp_do_segment()
2094 thflags &= ~TH_SYN; in tcp_do_segment()
2127 thflags &= ~TH_FIN; in tcp_do_segment()
2140 if (thflags & TH_ACK) in tcp_do_segment()
2161 if (thflags & TH_RST) { in tcp_do_segment()
2214 if ((thflags & TH_SYN) && tp->t_state != TCPS_SYN_SENT && in tcp_do_segment()
2224 tcp_ecn_input_syn_sent(tp, thflags, iptos); in tcp_do_segment()
2276 if (thflags & TH_SYN) { in tcp_do_segment()
2277 thflags &= ~TH_SYN; in tcp_do_segment()
2282 thflags &= ~TH_URG; in tcp_do_segment()
2289 || (todrop == tlen && (thflags & TH_FIN) == 0)) { in tcp_do_segment()
2295 thflags &= ~TH_FIN; in tcp_do_segment()
2327 thflags &= ~TH_URG; in tcp_do_segment()
2380 thflags &= ~(TH_PUSH|TH_FIN); in tcp_do_segment()
2404 ((thflags & (TH_SYN|TH_FIN)) != 0))) { in tcp_do_segment()
2414 if ((thflags & TH_ACK) == 0) { in tcp_do_segment()
2536 if (tlen == 0 && (thflags & TH_FIN) == 0) { in tcp_do_segment()
2592 if ((thflags & TH_FIN) && in tcp_do_segment()
3131 if ((thflags & TH_ACK) && in tcp_do_segment()
3150 if ((thflags & TH_URG) && th->th_urp && in tcp_do_segment()
3161 thflags &= ~TH_URG; /* XXX */ in tcp_do_segment()
3222 if ((tlen || (thflags & TH_FIN) || (tfo_syn && tlen > 0)) && in tcp_do_segment()
3258 thflags = tcp_get_flags(th) & TH_FIN; in tcp_do_segment()
3276 thflags = tcp_reass(tp, th, &temp, &tlen, m); in tcp_do_segment()
3328 if ((thflags & TH_FIN) != 0) { in tcp_do_segment()
3344 if ((thflags & TH_FIN) != 0) { in tcp_do_segment()
3356 thflags &= ~TH_FIN; in tcp_do_segment()
3363 if (thflags & TH_FIN) { in tcp_do_segment()
3444 if (tp->t_state == TCPS_SYN_RECEIVED && (thflags & TH_ACK) && in tcp_do_segment()