Permalink
Browse files

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

  • Loading branch information...
1 parent c53a174 commit b99da057bbe7c7bcb039ff5d90341e80c901516e @keithw keithw committed Oct 22, 2012
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 )" );
}

0 comments on commit b99da05

Please sign in to comment.