DiffServ codepoint and ECN: Roll back to just ECT (no DSCP)
This commit is contained in:
@@ -159,8 +159,8 @@ Connection::Socket::Socket()
|
|||||||
}
|
}
|
||||||
#endif
|
#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 ) {
|
if ( setsockopt( _fd, IPPROTO_IP, IP_TOS, &dscp, sizeof (dscp)) < 0 ) {
|
||||||
// perror( "setsockopt( IP_TOS )" );
|
// perror( "setsockopt( IP_TOS )" );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user