mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't sign game traffic, we shouldn't need it anymore
This commit is contained in:
parent
a1f82b2a37
commit
30ca69e51d
3 changed files with 32 additions and 23 deletions
|
|
@ -4855,6 +4855,8 @@ static void HandlePacketFromPlayer(SINT8 node)
|
||||||
I_Error("bad table nodetoplayer: node %d player %d", doomcom->remotenode, netconsole);
|
I_Error("bad table nodetoplayer: node %d player %d", doomcom->remotenode, netconsole);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef SIGNGAMETRAFFIC
|
||||||
if (server)
|
if (server)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -4891,7 +4893,7 @@ static void HandlePacketFromPlayer(SINT8 node)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
switch (netbuffer->packettype)
|
switch (netbuffer->packettype)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -388,7 +388,9 @@ struct doomdata_t
|
||||||
UINT8 ackreturn; // The return of the ack number
|
UINT8 ackreturn; // The return of the ack number
|
||||||
|
|
||||||
UINT8 packettype;
|
UINT8 packettype;
|
||||||
|
#ifdef SIGNGAMETRAFFIC
|
||||||
uint8_t signature[MAXSPLITSCREENPLAYERS][64];
|
uint8_t signature[MAXSPLITSCREENPLAYERS][64];
|
||||||
|
#endif
|
||||||
UINT8 reserved; // Padding
|
UINT8 reserved; // Padding
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1001,6 +1001,8 @@ static boolean ShouldDropPacket(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Unused because Eidolon correctly pointed out that +512b on every packet was scary.
|
||||||
|
#ifdef SIGNGAMETRAFFIC
|
||||||
boolean IsPacketSigned(int packettype)
|
boolean IsPacketSigned(int packettype)
|
||||||
{
|
{
|
||||||
switch (packettype)
|
switch (packettype)
|
||||||
|
|
@ -1025,6 +1027,7 @@ boolean IsPacketSigned(int packettype)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// HSendPacket
|
// HSendPacket
|
||||||
|
|
@ -1033,6 +1036,7 @@ boolean HSendPacket(INT32 node, boolean reliable, UINT8 acknum, size_t packetlen
|
||||||
{
|
{
|
||||||
doomcom->datalength = (INT16)(packetlength + BASEPACKETSIZE);
|
doomcom->datalength = (INT16)(packetlength + BASEPACKETSIZE);
|
||||||
|
|
||||||
|
#ifdef SIGNGAMETRAFFIC
|
||||||
if (IsPacketSigned(netbuffer->packettype))
|
if (IsPacketSigned(netbuffer->packettype))
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
@ -1061,6 +1065,7 @@ boolean HSendPacket(INT32 node, boolean reliable, UINT8 acknum, size_t packetlen
|
||||||
//CONS_Printf("NOT signing PT_%d of length %d, it doesn't need to be\n", netbuffer->packettype, packetlength);
|
//CONS_Printf("NOT signing PT_%d of length %d, it doesn't need to be\n", netbuffer->packettype, packetlength);
|
||||||
memset(netbuffer->signature, 0, sizeof(netbuffer->signature));
|
memset(netbuffer->signature, 0, sizeof(netbuffer->signature));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (node == 0) // Packet is to go back to us
|
if (node == 0) // Packet is to go back to us
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue