| /freebsd/sys/netinet/ |
| H A D | tcp_ecn.c | 119 tcp_ecn_input_syn_sent(struct tcpcb *tp, uint16_t thflags, int iptos) in tcp_ecn_input_syn_sent() argument 128 if ((thflags & (TH_CWR | TH_ECE)) == (0 | TH_ECE)) { in tcp_ecn_input_syn_sent() 147 switch (thflags & (TH_AE | TH_CWR | TH_ECE)) { in tcp_ecn_input_syn_sent() 225 tcp_ecn_input_parallel_syn(struct tcpcb *tp, uint16_t thflags, int iptos) in tcp_ecn_input_parallel_syn() argument 227 if (thflags & TH_ACK) in tcp_ecn_input_parallel_syn() 236 if ((thflags & (TH_CWR | TH_ECE)) == (TH_CWR | TH_ECE)) { in tcp_ecn_input_parallel_syn() 247 switch (thflags & (TH_AE | TH_CWR | TH_ECE)) { in tcp_ecn_input_parallel_syn() 293 tcp_ecn_input_segment(struct tcpcb *tp, uint16_t thflags, int tlen, int pkts, int iptos) in tcp_ecn_input_segment() argument 314 delta_cep = (tcp_ecn_get_ace(thflags) + 8 - in tcp_ecn_input_segment() 325 switch (tcp_ecn_get_ace(thflags)) { in tcp_ecn_input_segment() [all …]
|
| H A D | tcp_timewait.c | 158 int thflags; in tcp_twcheck() local 164 thflags = tcp_get_flags(th); in tcp_twcheck() 166 if ((thflags & (TH_SYN | TH_ACK)) == TH_SYN) in tcp_twcheck() 186 if (thflags & TH_RST) in tcp_twcheck() 197 if ((thflags & TH_ACK) == 0) in tcp_twcheck() 207 if ((thflags & TH_SYN) && (thflags & TH_FIN) && V_drop_synfin) { in tcp_twcheck() 224 if (((thflags & (TH_SYN | TH_ACK)) == TH_SYN) && in tcp_twcheck() 261 if ((thflags & TH_ACK) == 0) in tcp_twcheck() 280 if (thflags & TH_FIN) { in tcp_twcheck() 281 seq = th->th_seq + tlen + (thflags & TH_SYN ? 1 : 0); in tcp_twcheck() [all …]
|
| H A D | tcp_input.c | 610 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() 968 (thflags & TH_SYN) ? TO_SYN : 0); in tcp_input_with_port() 1037 if ((thflags & (TH_RST|TH_ACK|TH_SYN)) == TH_ACK) { in tcp_input_with_port() 1142 if (thflags & TH_RST) { in tcp_input_with_port() 1149 if ((thflags & TH_SYN) == 0) { in tcp_input_with_port() 1160 if (thflags & TH_ACK) { in tcp_input_with_port() 1179 if ((thflags & TH_FIN) && V_drop_synfin) { in tcp_input_with_port() [all …]
|
| H A D | tcp_subr.c | 1739 int thflags = tcp_get_flags(th); in tcp_respond() local 2113 KASSERT((thflags & (TH_ACK|TH_SYN)) == TH_SYN && in tcp_respond() 2118 __func__, thflags, PRINT_TH_FLAGS, in tcp_respond()
|
| /freebsd/sys/netinet/tcp_stacks/ |
| H A D | rack_bbr_common.c | 548 int32_t thflags; in ctf_drop_checks() local 551 thflags = *thf; in ctf_drop_checks() 555 if (thflags & TH_SYN) { in ctf_drop_checks() 556 thflags &= ~TH_SYN; in ctf_drop_checks() 561 thflags &= ~TH_URG; in ctf_drop_checks() 568 || (todrop == tlen && (thflags & TH_FIN) == 0)) { in ctf_drop_checks() 574 thflags &= ~TH_FIN; in ctf_drop_checks() 606 thflags &= ~TH_URG; in ctf_drop_checks() 630 ctf_do_dropafterack(m, tp, th, thflags, tlen, ret_val); in ctf_drop_checks() 637 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 | 7674 int32_t * ofia, int32_t thflags, int32_t * ret_val) in bbr_process_ack() argument 7720 ctf_do_dropafterack(m, tp, th, thflags, tlen, ret_val); in bbr_process_ack() 7726 ctf_do_dropafterack(m, tp, th, thflags, tlen, ret_val); in bbr_process_ack() 8130 uint32_t tiwin, int32_t thflags, int32_t nxt_pkt) in bbr_process_data() argument 8143 if ((thflags & TH_ACK) && in bbr_process_data() 8157 } else if (thflags & TH_ACK) { in bbr_process_data() 8214 if ((tlen || (thflags & TH_FIN) || (tfo_syn && tlen > 0)) && in bbr_process_data() 8269 thflags = tcp_get_flags(th) & TH_FIN; in bbr_process_data() 8297 thflags = tcp_reass(tp, th, &temp, &tlen, m); in bbr_process_data() 8340 thflags &= ~TH_FIN; in bbr_process_data() [all …]
|
| H A D | rack.c | 428 …uint32_t tiwin, int32_t tlen, int32_t * ofia, int32_t thflags, int32_t * ret_val, int32_t orig_tle… 432 uint32_t tiwin, int32_t thflags, int32_t nxt_pkt); 528 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 533 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 537 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 545 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 549 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 553 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 557 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); 561 int32_t tlen, uint32_t tiwin, int32_t thflags, int32_t nxt_pkt, uint8_t iptos); [all …]
|