Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103070446
D43797.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
487 B
Referenced Files
None
Subscribers
None
D43797.diff
View Options
diff --git a/sys/netinet/cc/cc_htcp.c b/sys/netinet/cc/cc_htcp.c
--- a/sys/netinet/cc/cc_htcp.c
+++ b/sys/netinet/cc/cc_htcp.c
@@ -229,9 +229,9 @@
* per RTT.
*/
CCV(ccv, snd_cwnd) += (((htcp_data->alpha <<
- HTCP_SHIFT) / (CCV(ccv, snd_cwnd) /
- CCV(ccv, t_maxseg))) * CCV(ccv, t_maxseg))
- >> HTCP_SHIFT;
+ HTCP_SHIFT) / (max(1,
+ CCV(ccv, snd_cwnd) / CCV(ccv, t_maxseg)))) *
+ CCV(ccv, t_maxseg)) >> HTCP_SHIFT;
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 21, 1:17 PM (21 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14761989
Default Alt Text
D43797.diff (487 B)
Attached To
Mode
D43797: tcp: prevent div by zero in cc_htcp
Attached
Detach File
Event Timeline
Log In to Comment