diff --git a/unix.c b/unix.c index 508c35d6..eb1538b1 100644 --- a/unix.c +++ b/unix.c @@ -458,12 +458,12 @@ enet_socket_set_option (ENetSocket socket, ENetSocketOption option, int value) #endif #ifdef IP_TOS // UNIX - IPv4 - value = value ? 46 << 2 : 0; // DSCP: Expedited Forwarding + value = value ? (46 << 2 | 0x01) : 0; // DSCP: Expedited Forwarding + ECT(1) (L4S) result = setsockopt (socket, IPPROTO_IP, IP_TOS, (char *) & value, sizeof (int)); #endif #ifdef IPV6_TCLASS // UNIX - IPv6 - value = value ? 46 << 2: 0; // DSCP: Expedited Forwarding + value = value ? (46 << 2 | 0x01): 0; // DSCP: Expedited Forwarding + ECT(1) (L4S) result = setsockopt (socket, IPPROTO_IPV6, IPV6_TCLASS, (char *) & value, sizeof (int)); #endif #ifdef SO_PRIORITY