Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102835762
D36875.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
920 B
Referenced Files
None
Subscribers
None
D36875.diff
View Options
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -514,7 +514,7 @@
continue;
}
if (sc->sc_rxmits > V_tcp_ecn_maxretries) {
- sc->sc_flags &= ~SCF_ECN;
+ sc->sc_flags &= ~SCF_ECN_MASK;
}
if (sc->sc_rxmits > V_tcp_syncache.rexmt_limit) {
if ((s = tcp_log_addrs(&sc->sc_inc, NULL, NULL, NULL))) {
@@ -1564,11 +1564,12 @@
else
sc->sc_flags &= ~SCF_TIMESTAMP;
/*
- * Disable ECN if needed.
+ * Adjust ECN response if needed, e.g. different
+ * IP ECN field, or a fallback by the remote host.
*/
- if ((sc->sc_flags & SCF_ECN) &&
- ((tcp_get_flags(th) & (TH_ECE|TH_CWR)) != (TH_ECE|TH_CWR))) {
- sc->sc_flags &= ~SCF_ECN;
+ if (sc->sc_flags & SCF_ECN_MASK) {
+ sc->sc_flags &= ~SCF_ECN_MASK;
+ sc->sc_flags = tcp_ecn_syncache_add(tcp_get_flags(th), iptos);
}
#ifdef MAC
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 7:22 PM (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14698373
Default Alt Text
D36875.diff (920 B)
Attached To
Mode
D36875: tcp: update repeat <SYN,ACK> with latest IP ECN info
Attached
Detach File
Event Timeline
Log In to Comment