Lines Matching refs:thflags

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()
351 if ((thflags & (TH_SYN | TH_ECE)) == TH_ECE) { in tcp_ecn_input_segment()
355 if (thflags & TH_CWR) { in tcp_ecn_input_segment()
364 cc_ecnpkt_handler_flags(tp, thflags, iptos); in tcp_ecn_input_segment()
376 uint16_t thflags = 0; in tcp_ecn_output_syn_sent() local
379 return thflags; in tcp_ecn_output_syn_sent()
384 thflags = TH_ECE|TH_CWR; in tcp_ecn_output_syn_sent()
386 thflags = TH_ECE|TH_CWR; in tcp_ecn_output_syn_sent()
391 thflags = TH_ECE|TH_CWR|TH_AE; in tcp_ecn_output_syn_sent()
393 thflags = TH_ECE|TH_CWR|TH_AE; in tcp_ecn_output_syn_sent()
396 return thflags; in tcp_ecn_output_syn_sent()
404 tcp_ecn_output_established(struct tcpcb *tp, uint16_t *thflags, int len, bool rxmit) in tcp_ecn_output_established() argument
432 tcp_ecn_set_ace(thflags, tp->t_rcep); in tcp_ecn_output_established()
448 *thflags |= TH_CWR; in tcp_ecn_output_established()
452 *thflags |= TH_ECE; in tcp_ecn_output_established()
493 tcp_ecn_syncache_add(uint16_t thflags, int iptos) in tcp_ecn_syncache_add() argument
509 switch (thflags & (TH_AE|TH_CWR|TH_ECE)) { in tcp_ecn_syncache_add()
567 tcp_ecn_syncache_respond(uint16_t thflags, struct syncache *sc) in tcp_ecn_syncache_respond() argument
569 if ((thflags & TH_SYN) && in tcp_ecn_syncache_respond()
573 thflags |= (0 | 0 | TH_ECE); in tcp_ecn_syncache_respond()
577 thflags |= (0 | TH_CWR | 0); in tcp_ecn_syncache_respond()
582 thflags |= (TH_AE | 0 | 0); in tcp_ecn_syncache_respond()
587 thflags |= (0 | TH_ECE | TH_CWR); in tcp_ecn_syncache_respond()
592 thflags |= (TH_AE | TH_CWR | 0); in tcp_ecn_syncache_respond()
598 return thflags; in tcp_ecn_syncache_respond()
602 tcp_ecn_get_ace(uint16_t thflags) in tcp_ecn_get_ace() argument
604 return ((thflags & (TH_AE|TH_CWR|TH_ECE)) >> TH_ACE_SHIFT); in tcp_ecn_get_ace()
608 tcp_ecn_set_ace(uint16_t *thflags, uint32_t t_rcep) in tcp_ecn_set_ace() argument
610 *thflags &= ~(TH_AE|TH_CWR|TH_ECE); in tcp_ecn_set_ace()
611 *thflags |= ((t_rcep << TH_ACE_SHIFT) & (TH_AE|TH_CWR|TH_ECE)); in tcp_ecn_set_ace()