|
|
@ -30,11 +30,11 @@ namespace tunnel |
|
|
|
EncryptTunnelMsg (tunnelMsg); |
|
|
|
EncryptTunnelMsg (tunnelMsg); |
|
|
|
|
|
|
|
|
|
|
|
LogPrint ("TransitTunnel: ",m_TunnelID,"->", m_NextTunnelID); |
|
|
|
LogPrint ("TransitTunnel: ",m_TunnelID,"->", m_NextTunnelID); |
|
|
|
|
|
|
|
m_NumTransmittedBytes += tunnelMsg->GetLength (); |
|
|
|
*(uint32_t *)(tunnelMsg->GetPayload ()) = htobe32 (m_NextTunnelID); |
|
|
|
*(uint32_t *)(tunnelMsg->GetPayload ()) = htobe32 (m_NextTunnelID); |
|
|
|
FillI2NPMessageHeader (tunnelMsg, eI2NPTunnelData); |
|
|
|
FillI2NPMessageHeader (tunnelMsg, eI2NPTunnelData); |
|
|
|
|
|
|
|
|
|
|
|
i2p::transports.SendMessage (m_NextIdent, tunnelMsg); |
|
|
|
i2p::transports.SendMessage (m_NextIdent, tunnelMsg); |
|
|
|
m_NumTransmittedBytes += tunnelMsg->GetLength (); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void TransitTunnel::SendTunnelDataMsg (i2p::I2NPMessage * msg) |
|
|
|
void TransitTunnel::SendTunnelDataMsg (i2p::I2NPMessage * msg) |
|
|
|