diff options
author | irungentoo <irungentoo@gmail.com> | 2014-09-17 21:01:08 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-09-17 21:01:08 -0400 |
commit | 9cb0c98a9c67a930cf8c29c1df212f2b8023049c (patch) | |
tree | a18647b4a02c9d6edfd92176cd79837433aaf058 /toxcore | |
parent | 7ec83c36239871b1747732205b195435866f22a1 (diff) |
Reduce max udp packet size to 2K.
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/network.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/network.h b/toxcore/network.h index 1f4b757c..b250604e 100644 --- a/toxcore/network.h +++ b/toxcore/network.h | |||
@@ -92,7 +92,7 @@ typedef int sock_t; | |||
92 | #endif | 92 | #endif |
93 | #endif | 93 | #endif |
94 | 94 | ||
95 | #define MAX_UDP_PACKET_SIZE 65507 | 95 | #define MAX_UDP_PACKET_SIZE 2048 |
96 | 96 | ||
97 | #define NET_PACKET_PING_REQUEST 0 /* Ping request packet ID. */ | 97 | #define NET_PACKET_PING_REQUEST 0 /* Ping request packet ID. */ |
98 | #define NET_PACKET_PING_RESPONSE 1 /* Ping response packet ID. */ | 98 | #define NET_PACKET_PING_RESPONSE 1 /* Ping response packet ID. */ |