Browse Source

include tagsetid into msgid

pull/2094/head
orignal 5 months ago
parent
commit
d7ff459f12
  1. 7
      libi2pd/ECIESX25519AEADRatchetSession.cpp

7
libi2pd/ECIESX25519AEADRatchetSession.cpp

@ -333,8 +333,9 @@ namespace garlic @@ -333,8 +333,9 @@ namespace garlic
auto offset1 = offset;
for (auto i = 0; i < numAcks; i++)
{
offset1 += 2; // tagsetid
MessageConfirmed (bufbe16toh (buf + offset1)); offset1 += 2; // N
uint32_t tagsetid = bufbe16toh (buf + offset1); offset1 += 2; // tagsetid
uint16_t n = bufbe16toh (buf + offset1); offset1 += 2; // N
MessageConfirmed ((tagsetid << 16) + n); // msgid
}
break;
}
@ -877,7 +878,7 @@ namespace garlic @@ -877,7 +878,7 @@ namespace garlic
{
// ack request
SetLeaseSetUpdateStatus (eLeaseSetSubmitted);
SetLeaseSetUpdateMsgID (m_SendTagset->GetNextIndex ());
SetLeaseSetUpdateMsgID ((m_SendTagset->GetTagSetID () << 16) + m_SendTagset->GetNextIndex ()); // (tagsetid << 16) + N
SetLeaseSetSubmissionTime (ts);
payloadLen += 4;
}

Loading…
Cancel
Save