Browse Source

create tunnel I2NP message for tunnel data

pull/1700/head
orignal 3 years ago
parent
commit
278fd2d8d5
  1. 3
      libi2pd/SSUData.cpp

3
libi2pd/SSUData.cpp

@ -176,7 +176,8 @@ namespace transport @@ -176,7 +176,8 @@ namespace transport
if (it == m_IncompleteMessages.end ())
{
// create new message
auto msg = NewI2NPShortMessage ();
auto msg = (!fragmentNum && fragmentSize > 0 && buf[I2NP_SHORT_HEADER_TYPEID_OFFSET] == eI2NPTunnelData) ?
NewI2NPTunnelMessage (true) : NewI2NPShortMessage ();
msg->len -= I2NP_SHORT_HEADER_SIZE;
it = m_IncompleteMessages.insert (std::make_pair (msgID,
m_Session.GetServer ().GetIncompleteMessagesPool ().AcquireShared (msg))).first;

Loading…
Cancel
Save