summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 02c43e57..dc7a9f7f 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -111,6 +111,21 @@ typedef int sock_t;
111#define NET_PACKET_LAN_DISCOVERY 33 /* LAN discovery packet ID. */ 111#define NET_PACKET_LAN_DISCOVERY 33 /* LAN discovery packet ID. */
112#define NET_PACKET_GROUP_CHATS 48 /* Group chats packet ID. */ 112#define NET_PACKET_GROUP_CHATS 48 /* Group chats packet ID. */
113 113
114/* See: docs/Prevent_Tracking.txt and onion.{c, h} */
115#define NET_PACKET_ONION_SEND_INITIAL 128
116#define NET_PACKET_ONION_SEND_1 129
117#define NET_PACKET_ONION_SEND_2 130
118
119#define NET_PACKET_ANNOUNCE_REQUEST 131
120#define NET_PACKET_ANNOUNCE_RESPONSE 132
121#define NET_PACKET_ONION_DATA_REQUEST 133
122#define NET_PACKET_ONION_DATA_RESPONSE 134
123
124#define NET_PACKET_ONION_RECV_3 140
125#define NET_PACKET_ONION_RECV_2 141
126#define NET_PACKET_ONION_RECV_1 142
127
128
114#define TOX_PORTRANGE_FROM 33445 129#define TOX_PORTRANGE_FROM 33445
115#define TOX_PORTRANGE_TO 33545 130#define TOX_PORTRANGE_TO 33545
116#define TOX_PORT_DEFAULT TOX_PORTRANGE_FROM 131#define TOX_PORT_DEFAULT TOX_PORTRANGE_FROM