Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F141923938
D14141.id38703.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
354 B
Referenced Files
None
Subscribers
None
D14141.id38703.diff
View Options
Index: sys/netinet/cc/cc_cubic.h
===================================================================
--- sys/netinet/cc/cc_cubic.h
+++ sys/netinet/cc/cc_cubic.h
@@ -184,6 +184,9 @@
*/
cwnd = ((cwnd * CUBIC_C_FACTOR * smss) >> CUBIC_SHIFT_4) + wmax;
+ if (cwnd < (int64_t)smss)
+ return (unsigned long)smss;
+
return ((unsigned long)cwnd);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 13, 2:34 PM (1 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27629180
Default Alt Text
D14141.id38703.diff (354 B)
Attached To
Mode
D14141: fix underflow for cubic_cwnd()
Attached
Detach File
Event Timeline
Log In to Comment