Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_stacks/rack.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 5,227 Lines • ▼ Show 20 Lines | if (DELAY_ACK(tp, tlen) && tlen != 0 && (tfo_partial == 0)) { | ||||
rack_timer_cancel(tp, (struct tcp_rack *)tp->t_fb_ptr, | rack_timer_cancel(tp, (struct tcp_rack *)tp->t_fb_ptr, | ||||
((struct tcp_rack *)tp->t_fb_ptr)->r_ctl.rc_rcvtime, __LINE__); | ((struct tcp_rack *)tp->t_fb_ptr)->r_ctl.rc_rcvtime, __LINE__); | ||||
tp->t_flags |= TF_DELACK; | tp->t_flags |= TF_DELACK; | ||||
} else { | } else { | ||||
((struct tcp_rack *)tp->t_fb_ptr)->r_wanted_output++; | ((struct tcp_rack *)tp->t_fb_ptr)->r_wanted_output++; | ||||
tp->t_flags |= TF_ACKNOW; | tp->t_flags |= TF_ACKNOW; | ||||
} | } | ||||
if ((thflags & TH_ECE) && V_tcp_do_ecn) { | if (((thflags & (TH_CWR | TH_ECE)) == TH_ECE) && | ||||
V_tcp_do_ecn) { | |||||
tp->t_flags |= TF_ECN_PERMIT; | tp->t_flags |= TF_ECN_PERMIT; | ||||
TCPSTAT_INC(tcps_ecn_shs); | TCPSTAT_INC(tcps_ecn_shs); | ||||
} | } | ||||
if (SEQ_GT(th->th_ack, tp->snd_una)) { | if (SEQ_GT(th->th_ack, tp->snd_una)) { | ||||
/* | /* | ||||
* We advance snd_una for the | * We advance snd_una for the | ||||
* fast open case. If th_ack is | * fast open case. If th_ack is | ||||
* acknowledging data beyond | * acknowledging data beyond | ||||
▲ Show 20 Lines • Show All 3,913 Lines • Show Last 20 Lines |