Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135433784
D23364.id67290.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
701 B
Referenced Files
None
Subscribers
None
D23364.id67290.diff
View Options
Index: sys/netinet/tcp_output.c
===================================================================
--- sys/netinet/tcp_output.c
+++ sys/netinet/tcp_output.c
@@ -1170,15 +1170,15 @@
#endif
ip->ip_tos |= IPTOS_ECN_ECT0;
TCPSTAT_INC(tcps_ecn_ect0);
+ /*
+ * Reply with proper ECN notifications.
+ * Only set CWR on new data segments
+ */
+ if (tp->t_flags2 & TF2_ECN_SND_CWR) {
+ flags |= TH_CWR;
+ tp->t_flags2 &= ~TF2_ECN_SND_CWR;
+ }
}
-
- /*
- * Reply with proper ECN notifications.
- */
- if (tp->t_flags2 & TF2_ECN_SND_CWR) {
- flags |= TH_CWR;
- tp->t_flags2 &= ~TF2_ECN_SND_CWR;
- }
if (tp->t_flags2 & TF2_ECN_SND_ECE)
flags |= TH_ECE;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 10, 8:08 PM (9 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25120338
Default Alt Text
D23364.id67290.diff (701 B)
Attached To
Mode
D23364: Send CWR only on new data, as per sec. 6.1.2 of RFC3168
Attached
Detach File
Event Timeline
Log In to Comment