Skip to content

Commit

Permalink
Incorporate DHT groupchat changes into network profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
JFreegman committed Nov 23, 2023
1 parent 38b0e7f commit 2b2eb9f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion toxcore/net_profile.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: GPL-3.0-or-later
* Copyright © 2022 The TokTok team.
* Copyright © 2023 The TokTok team.
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion toxcore/net_profile.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: GPL-3.0-or-later
* Copyright © 2022 The TokTok team.
* Copyright © 2023 The TokTok team.
*/

/**
Expand Down
25 changes: 21 additions & 4 deletions toxcore/tox_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,13 @@ typedef enum Tox_Netprof_Packet_Id {
*/
TOX_NETPROF_PACKET_ID_LAN_DISCOVERY = 0x21,

/**
* DHT groupchat packets.
*/
TOX_NETPROF_PACKET_GC_HANDSHAKE = 0x5a,
TOX_NETPROF_PACKET_GC_LOSSLESS = 0x5b,
TOX_NETPROF_PACKET_GC_LOSSY = 0x5c,

/**
* Onion send packets.
*/
Expand All @@ -267,14 +274,14 @@ typedef enum Tox_Netprof_Packet_Id {
TOX_NETPROF_PACKET_ID_ONION_SEND_2 = 0x82,

/**
* DHT announce request packet.
* DHT announce request packet (deprecated).
*/
TOX_NETPROF_PACKET_ID_ANNOUNCE_REQUEST = 0x83,
TOX_NETPROF_PACKET_ID_ANNOUNCE_REQUEST_OLD = 0x83,

/**
* DHT announce response packet.
* DHT announce response packet (deprecated).
*/
TOX_NETPROF_PACKET_ID_ANNOUNCE_RESPONSE = 0x84,
TOX_NETPROF_PACKET_ID_ANNOUNCE_RESPONSE_OLD = 0x84,

/**
* Onion data request packet.
Expand All @@ -286,6 +293,16 @@ typedef enum Tox_Netprof_Packet_Id {
*/
TOX_NETPROF_PACKET_ID_ONION_DATA_RESPONSE = 0x86,

/**
* DHT announce request packet.
*/
TOX_NETPROF_PACKET_ID_ANNOUNCE_REQUEST = 0x87,

/**
* DHT announce response packet.
*/
TOX_NETPROF_PACKET_ID_ANNOUNCE_RESPONSE = 0x88,

/**
* Onion receive packets.
*/
Expand Down

0 comments on commit 2b2eb9f

Please sign in to comment.