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 7,597 Lines • ▼ Show 20 Lines | dontupdate: | ||||
if (SEQ_GT(tp->snd_up, tp->snd_una)) { | if (SEQ_GT(tp->snd_up, tp->snd_una)) { | ||||
pass = 10; | pass = 10; | ||||
goto send; | goto send; | ||||
} | } | ||||
/* | /* | ||||
* If our state indicates that FIN should be sent and we have not | * If our state indicates that FIN should be sent and we have not | ||||
* yet done so, then we need to send. | * yet done so, then we need to send. | ||||
*/ | */ | ||||
if (flags & TH_FIN) { | if ((flags & TH_FIN) && | ||||
if ((tp->t_flags & TF_SENTFIN) || | (tp->snd_nxt == tp->snd_una)) { | ||||
(((tp->t_flags & TF_SENTFIN) == 0) && | |||||
(tp->snd_nxt == tp->snd_una))) { | |||||
pass = 11; | pass = 11; | ||||
goto send; | goto send; | ||||
} | |||||
} | } | ||||
/* | /* | ||||
* No reason to send a segment, just return. | * No reason to send a segment, just return. | ||||
*/ | */ | ||||
just_return: | just_return: | ||||
SOCKBUF_UNLOCK(sb); | SOCKBUF_UNLOCK(sb); | ||||
just_return_nolock: | just_return_nolock: | ||||
if (tot_len_this_send == 0) | if (tot_len_this_send == 0) | ||||
▲ Show 20 Lines • Show All 1,528 Lines • Show Last 20 Lines |