mirror of
https://github.com/mupen64plus/mupen64plus-core.git
synced 2024-05-20 04:50:38 -04:00
use CS4 for netplay DSCP
This commit is contained in:
parent
fba8a57cf1
commit
080b2b8e34
|
@ -31,7 +31,6 @@
|
|||
|
||||
#include <SDL_net.h>
|
||||
#if !defined(WIN32)
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/ip.h>
|
||||
#endif
|
||||
|
||||
|
@ -72,7 +71,7 @@ struct __UDPSocket {
|
|||
int channel;
|
||||
};
|
||||
|
||||
#define EF 46
|
||||
#define CS4 32
|
||||
|
||||
m64p_error netplay_start(const char* host, int port)
|
||||
{
|
||||
|
@ -90,7 +89,7 @@ m64p_error netplay_start(const char* host, int port)
|
|||
}
|
||||
|
||||
#if !defined(WIN32)
|
||||
const char tos_local = EF << 2;
|
||||
const char tos_local = CS4 << 2;
|
||||
struct __UDPSocket* socket = (struct __UDPSocket*) l_udpSocket;
|
||||
setsockopt(socket->channel, IPPROTO_IP, IP_TOS, &tos_local, sizeof(tos_local));
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue