Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109479423
D6386.id16376.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
928 B
Referenced Files
None
Subscribers
None
D6386.id16376.diff
View Options
Index: sys/netinet/tcp_input.c
===================================================================
--- sys/netinet/tcp_input.c
+++ sys/netinet/tcp_input.c
@@ -185,7 +185,7 @@
static SYSCTL_NODE(_net_inet_tcp, OID_AUTO, ecn, CTLFLAG_RW, 0, "TCP ECN");
-VNET_DEFINE(int, tcp_do_ecn) = 0;
+VNET_DEFINE(int, tcp_do_ecn) = 2;
SYSCTL_INT(_net_inet_tcp_ecn, OID_AUTO, enable, CTLFLAG_VNET | CTLFLAG_RW,
&VNET_NAME(tcp_do_ecn), 0,
"TCP ECN support");
Index: sys/netinet/tcp_output.c
===================================================================
--- sys/netinet/tcp_output.c
+++ sys/netinet/tcp_output.c
@@ -1117,7 +1117,7 @@
* resend those bits a number of times as per
* RFC 3168.
*/
- if (tp->t_state == TCPS_SYN_SENT && V_tcp_do_ecn) {
+ if (tp->t_state == TCPS_SYN_SENT && V_tcp_do_ecn == 1) {
if (tp->t_rxtshift >= 1) {
if (tp->t_rxtshift <= V_tcp_ecn_maxretries)
flags |= TH_ECE|TH_CWR;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 6, 3:20 PM (21 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16495221
Default Alt Text
D6386.id16376.diff (928 B)
Attached To
Mode
D6386: Allow ECN to be accepted for incoming TCP connections without requesting it for outgoing connections and make this the default
Attached
Detach File
Event Timeline
Log In to Comment