/freebsd/sys/netinet/ |
H A D | tcp_ecn.c | 120 tcp_ecn_input_syn_sent(struct tcpcb *tp, uint16_t thflags, int iptos) in tcp_ecn_input_syn_sent() argument 129 if ((thflags & (TH_CWR | TH_ECE)) == (0 | TH_ECE)) { in tcp_ecn_input_syn_sent() 148 switch (thflags & (TH_AE | TH_CWR | TH_ECE)) { in tcp_ecn_input_syn_sent() 226 tcp_ecn_input_parallel_syn(struct tcpcb *tp, uint16_t thflags, int iptos) in tcp_ecn_input_parallel_syn() argument 228 if (thflags & TH_ACK) in tcp_ecn_input_parallel_syn() 237 if ((thflags & (TH_CWR | TH_ECE)) == (TH_CWR | TH_ECE)) { in tcp_ecn_input_parallel_syn() 248 switch (thflags & (TH_AE | TH_CWR | TH_ECE)) { in tcp_ecn_input_parallel_syn() 294 tcp_ecn_input_segment(struct tcpcb *tp, uint16_t thflags, int tlen, int pkts, int iptos) in tcp_ecn_input_segment() argument 315 delta_cep = (tcp_ecn_get_ace(thflags) + 8 - in tcp_ecn_input_segment() 326 switch (tcp_ecn_get_ace(thflags)) { in tcp_ecn_input_segment() [all …]
|
H A D | tcp_timewait.c | 161 int thflags; in tcp_twcheck() local 167 thflags = tcp_get_flags(th); in tcp_twcheck() 169 if ((thflags & (TH_SYN | TH_ACK)) == TH_SYN) in tcp_twcheck() 189 if (thflags & TH_RST) in tcp_twcheck() 200 if ((thflags & TH_ACK) == 0) in tcp_twcheck() 210 if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) { in tcp_twcheck() 227 if (((thflags & (TH_SYN | TH_ACK)) == TH_SYN) && in tcp_twcheck() 264 if ((thflags & TH_ACK) == 0) in tcp_twcheck() 283 if (thflags in tcp_twcheck() [all...] |
H A D | tcp_input.c | 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() [all …]
|
H A D | tcp_subr.c | 1757 int thflags = tcp_get_flags(th); in tcp_respond() local 2131 KASSERT((thflags & (TH_ACK|TH_SYN)) == TH_SYN && in tcp_respond() 2136 __func__, thflags, PRINT_TH_FLAGS, in tcp_respond()
|
/freebsd/sys/netinet/tcp_stacks/ |
H A D | rack_bbr_common.c | 552 int32_t thflags; in ctf_drop_checks() local 555 thflags = *thf; in ctf_drop_checks() 559 if (thflags & TH_SYN) { in ctf_drop_checks() 560 thflags &= ~TH_SYN; in ctf_drop_checks() 565 thflags &= ~TH_URG; in ctf_drop_checks() 572 || (todrop == tlen && (thflags & TH_FIN) == 0)) { in ctf_drop_checks() 578 thflags &= ~TH_FIN; in ctf_drop_checks() 610 thflags &= ~TH_URG; in ctf_drop_checks() 634 ctf_do_dropafterack(m, tp, th, thflags, tlen, ret_val); in ctf_drop_checks() 641 thflags &= ~(TH_PUSH | TH_FIN); in ctf_drop_checks() [all …]
|
H A D | rack_bbr_common.h | 99 struct tcphdr *th, int32_t thflags, int32_t tlen, 118 struct tcpcb *tp, int32_t tlen, int32_t thflags, int32_t * ret_val); 121 ctf_ts_check_ac(struct tcpcb *tp, int32_t thflags);
|
H A D | bbr.c | 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() [all …]
|
H A D | rack.c | 447 …uint32_t tiwin, int32_t tlen, int32_t * ofia, int32_t thflags, int32_t * ret_val, int32_t orig_tle… 451 uint32_t tiwin, int32_t thflags, int32_t nxt_pkt); 547 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 552 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 556 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 564 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 568 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 572 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 576 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 580 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); [all …]
|