mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
SSU2: fix PS2 packet numbering
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user