diff --git a/src/base/system.c b/src/base/system.c index 70a78d16f..827ee1fd3 100644 --- a/src/base/system.c +++ b/src/base/system.c @@ -1153,6 +1153,11 @@ NETSOCKET net_udp_create(NETADDR bindaddr) /* set receive buffer size */ setsockopt(socket, SOL_SOCKET, SO_RCVBUF, (char*)&recvsize, sizeof(recvsize)); + + /* set DSCP/TOS */ + int iptos = 0x10 /* IPTOS_LOWDELAY */; + //int iptos = 46; /* High Priority */ + setsockopt(socket, IPPROTO_IP, IP_TOS, (char*)&iptos, sizeof(iptos)); } } @@ -1175,6 +1180,11 @@ NETSOCKET net_udp_create(NETADDR bindaddr) /* set receive buffer size */ setsockopt(socket, SOL_SOCKET, SO_RCVBUF, (char*)&recvsize, sizeof(recvsize)); + + /* set DSCP/TOS */ + int iptos = 0x10 /* IPTOS_LOWDELAY */; + //int iptos = 46; /* High Priority */ + setsockopt(socket, IPPROTO_IP, IP_TOS, (char*)&iptos, sizeof(iptos)); } }