From acb155ef3347a53b6da4c9af7accc65434dcdbc5 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 29 Apr 2007 22:15:44 +0000 Subject: [PATCH] increased IP + UDP header overhead estimate from 18 bytes to 28 bytes based on tcpdump results git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7208 d7cf8633-e32d-0410-b094-e92efae38249 --- netconn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/netconn.c b/netconn.c index b2b33e6e..c83b3bde 100755 --- a/netconn.c +++ b/netconn.c @@ -580,7 +580,7 @@ int NetConn_SendUnreliableMessage(netconn_t *conn, sizebuf_t *data, protocolvers packetsSent++; unreliableMessagesSent++; - totallen += packetLen + 18; + totallen += packetLen + 28; } else { @@ -618,7 +618,7 @@ int NetConn_SendUnreliableMessage(netconn_t *conn, sizebuf_t *data, protocolvers packetsReSent++; } - totallen += packetLen + 18; + totallen += packetLen + 28; } // if we have a new reliable message to send, do so @@ -669,7 +669,7 @@ int NetConn_SendUnreliableMessage(netconn_t *conn, sizebuf_t *data, protocolvers packetsSent++; reliableMessagesSent++; - totallen += packetLen + 18; + totallen += packetLen + 28; } // if we have an unreliable message to send, do so @@ -698,7 +698,7 @@ int NetConn_SendUnreliableMessage(netconn_t *conn, sizebuf_t *data, protocolvers unreliableMessagesSent++; if (data->cursize) - totallen += packetLen + 18; + totallen += packetLen + 28; } } -- 2.39.2