summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 4c7f1a83..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
@@ -143,6 +149,9 @@ typedef int sock_t;
143#define NET_PACKET_ONION_RECV_2 141 149#define NET_PACKET_ONION_RECV_2 141
144#define NET_PACKET_ONION_RECV_1 142 150#define NET_PACKET_ONION_RECV_1 142
145 151
152/* Only used for bootstrap servers */
153#define BOOTSTRAP_INFO_PACKET_ID 240
154
146 155
147#define TOX_PORTRANGE_FROM 33445 156#define TOX_PORTRANGE_FROM 33445
148#define TOX_PORTRANGE_TO 33545 157#define TOX_PORTRANGE_TO 33545