I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit e53a59b4 authored by zzz's avatar zzz
Browse files

SSU2: fix PS2 packet numbering

parent a13f2b97
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,11 @@ public class PeerState2 extends PeerState implements SSU2Payload.PayloadCallback
// SSU 2 things
long getNextPacketNumber() { return _packetNumber.incrementAndGet(); }
/**
* Next outbound packet number,
* starts at 1 for Alice (0 is Session Confirmed) and 0 for Bob
*/
long getNextPacketNumber() { return _packetNumber.getAndIncrement(); }
long getSendConnID() { return _sendConnID; }
long getRcvConnID() { return _rcvConnID; }
/** caller must sync on returned object when encrypting */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment