mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
TCP BBR: fix integer overflow
Use 64-bit arithmetic. Reviewed by: rrs CID: 1523806 Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D48302 (cherry picked from commit 88766e7af52bbde32b14ad48fb76798a3ba4650c)
This commit is contained in:
parent
c3322bb468
commit
c178bc1934
1 changed files with 1 additions and 1 deletions
|
|
@ -3842,7 +3842,7 @@ bbr_post_recovery(struct tcpcb *tp)
|
|||
else if (bbr->r_ctl.rc_delivered == 0)
|
||||
lr2use = 1000;
|
||||
else {
|
||||
lr2use = bbr->r_ctl.rc_lost * 1000;
|
||||
lr2use = (uint64_t)bbr->r_ctl.rc_lost * (uint64_t)1000;
|
||||
lr2use /= bbr->r_ctl.rc_delivered;
|
||||
}
|
||||
lr2use += bbr->r_ctl.recovery_lr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue