From ad2037e165fd4639376144ddf92d8ed48ee4a032 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 24 Dec 2013 16:22:56 -0500 Subject: Added the shell of onion.{c, h} --- toxcore/network.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'toxcore/network.h') 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; #define NET_PACKET_LAN_DISCOVERY 33 /* LAN discovery packet ID. */ #define NET_PACKET_GROUP_CHATS 48 /* Group chats packet ID. */ +/* See: docs/Prevent_Tracking.txt and onion.{c, h} */ +#define NET_PACKET_ONION_SEND_INITIAL 128 +#define NET_PACKET_ONION_SEND_1 129 +#define NET_PACKET_ONION_SEND_2 130 + +#define NET_PACKET_ANNOUNCE_REQUEST 131 +#define NET_PACKET_ANNOUNCE_RESPONSE 132 +#define NET_PACKET_ONION_DATA_REQUEST 133 +#define NET_PACKET_ONION_DATA_RESPONSE 134 + +#define NET_PACKET_ONION_RECV_3 140 +#define NET_PACKET_ONION_RECV_2 141 +#define NET_PACKET_ONION_RECV_1 142 + + #define TOX_PORTRANGE_FROM 33445 #define TOX_PORTRANGE_TO 33545 #define TOX_PORT_DEFAULT TOX_PORTRANGE_FROM -- cgit v1.2.3