diff options
author | irungentoo <irungentoo@gmail.com> | 2013-12-24 16:22:56 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-12-24 16:22:56 -0500 |
commit | ad2037e165fd4639376144ddf92d8ed48ee4a032 (patch) | |
tree | 5d9cad9e2aeeba212786e49387c3149472a7f421 /toxcore/network.h | |
parent | 01949b6a679d4949735972283284309d8caef0bd (diff) |
Added the shell of onion.{c, h}
Diffstat (limited to 'toxcore/network.h')
-rw-r--r-- | toxcore/network.h | 15 |
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 |