Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Back out use of ip.h IPTOS_DSCP_AF42 constant (missing on OS X)

  • Loading branch information...
commit b99da057bbe7c7bcb039ff5d90341e80c901516e 1 parent c53a174
@keithw authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/network/network.cc
View
3  src/network/network.cc
@@ -35,7 +35,6 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
-#include <netinet/ip.h>
#include <arpa/inet.h>
#include <assert.h>
#include <errno.h>
@@ -158,7 +157,7 @@ Connection::Socket::Socket()
#endif
/* set diffserv values to AF42 + ECT */
- int dscp = IPTOS_DSCP_AF42 | IPTOS_ECN_ECT0;
+ int dscp = 0x92; /* OS X does not have IPTOS_DSCP_AF42 constant */
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.