mirror of
https://github.com/opnsense/src.git
synced 2026-06-07 07:42:26 -04:00
tcp: Make use of enum for sack_changed
No functional change. Reviewed By: tuexen, #transport MFC after: 3 days Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D43346
This commit is contained in:
parent
fbbdfa2b8a
commit
893ed42eca
1 changed files with 2 additions and 1 deletions
|
|
@ -2499,7 +2499,8 @@ tcp_do_segment(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th,
|
|||
goto dropafterack;
|
||||
}
|
||||
if (tcp_is_sack_recovery(tp, &to)) {
|
||||
if (((sack_changed = tcp_sack_doack(tp, &to, th->th_ack)) != 0) &&
|
||||
sack_changed = tcp_sack_doack(tp, &to, th->th_ack);
|
||||
if ((sack_changed != SACK_NOCHANGE) &&
|
||||
(tp->t_flags & TF_LRD)) {
|
||||
tcp_sack_lost_retransmission(tp, th);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue