mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
check if msg 5 was received instead state
This commit is contained in:
parent
2dfc9003a7
commit
189d7179c0
2 changed files with 18 additions and 16 deletions
|
@ -113,8 +113,6 @@ namespace transport
|
|||
eSSU2SessionStateFailed,
|
||||
eSSU2SessionStateIntroduced,
|
||||
eSSU2SessionStatePeerTest,
|
||||
eSSU2SessionStatePeerTestReceived, // 5 before 4
|
||||
eSSU2SessionStateVoidPeerTestReceived, // 5 before 4, but from connected recently
|
||||
eSSU2SessionStateTokenRequestReceived
|
||||
};
|
||||
|
||||
|
@ -397,7 +395,8 @@ namespace transport
|
|||
|
||||
SSU2PeerTestSession (SSU2Server& server, uint64_t sourceConnID, uint64_t destConnID);
|
||||
|
||||
uint8_t GetMsgNumReceived () const { return m_MsgNumReceived; }
|
||||
uint8_t GetMsgNumReceived () const { return m_MsgNumReceived; }
|
||||
bool IsConnectedRecently () const { return m_IsConnectedRecently; }
|
||||
bool ProcessPeerTest (uint8_t * buf, size_t len) override;
|
||||
|
||||
private:
|
||||
|
@ -407,6 +406,7 @@ namespace transport
|
|||
private:
|
||||
|
||||
uint8_t m_MsgNumReceived;
|
||||
bool m_IsConnectedRecently;
|
||||
};
|
||||
|
||||
inline uint64_t CreateHeaderMask (const uint8_t * kh, const uint8_t * nonce)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue