summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 19c9ca63..aaf89f19 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -129,6 +129,12 @@ typedef int sock_t;
129#define NET_PACKET_LAN_DISCOVERY 33 /* LAN discovery packet ID. */ 129#define NET_PACKET_LAN_DISCOVERY 33 /* LAN discovery packet ID. */
130#define NET_PACKET_GROUP_CHATS 48 /* Group chats packet ID. */ 130#define NET_PACKET_GROUP_CHATS 48 /* Group chats packet ID. */
131 131
132/* Range of ids that custom user packets can use. */
133#define NET_PACKET_CUSTOM_RANGE_START 64
134#define NET_PACKET_CUSTOM_RANGE_END 96
135
136#define TOTAL_USERPACKETS (NET_PACKET_CUSTOM_RANGE_END - NET_PACKET_CUSTOM_RANGE_START)
137
132/* See: docs/Prevent_Tracking.txt and onion.{c, h} */ 138/* See: docs/Prevent_Tracking.txt and onion.{c, h} */
133#define NET_PACKET_ONION_SEND_INITIAL 128 139#define NET_PACKET_ONION_SEND_INITIAL 128
134#define NET_PACKET_ONION_SEND_1 129 140#define NET_PACKET_ONION_SEND_1 129