From 5cafd030acb81cd6e4ff81a5ae3c5c7ff9bb21be Mon Sep 17 00:00:00 2001 From: jdl Date: Fri, 21 Feb 2025 07:42:16 +0100 Subject: [PATCH] wip --- peer/packets.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/peer/packets.go b/peer/packets.go index b300dee..5be89b0 100644 --- a/peer/packets.go +++ b/peer/packets.go @@ -9,10 +9,18 @@ const ( packetTypeAck = 3 packetTypeProbe = 4 packetTypeAddrDiscovery = 5 + packetTypeInit = 6 ) // ---------------------------------------------------------------------------- +type packetInit struct { + TraceID uint64 + Version uint64 +} + +// ---------------------------------------------------------------------------- + type packetSyn struct { TraceID uint64 // TraceID to match response w/ request. SharedKey [32]byte // Our shared key.