Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

DiffServ codepoint and ECN: Roll back to just ECT (no DSCP)

  • Loading branch information...
commit 770e4208cc8ea745c38921a5ab0d912c324f82d6 1 parent 093bbc9
Keith Winstein authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/network/network.cc
4 src/network/network.cc
View
@@ -159,8 +159,8 @@ Connection::Socket::Socket()
}
#endif
- /* set diffserv values to AF42 + ECT */
- int dscp = 0x92; /* OS X does not have IPTOS_DSCP_AF42 constant */
+ // int dscp = 0x92; /* OS X does not have IPTOS_DSCP_AF42 constant */
+ int dscp = 0x02; /* ECN-capable transport only */
if ( setsockopt( _fd, IPPROTO_IP, IP_TOS, &dscp, sizeof (dscp)) < 0 ) {
// perror( "setsockopt( IP_TOS )" );
}
Please sign in to comment.
Something went wrong with that request. Please try again.