mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
rollback
This commit is contained in:
parent
dde2b4a879
commit
c5c0d2060c
2 changed files with 28 additions and 41 deletions
|
@ -114,7 +114,6 @@ namespace tunnel
|
|||
I2NPMessage (): buf (nullptr),len (sizeof (I2NPHeader) + 2),
|
||||
offset(2), maxLen (0), from (nullptr) {};
|
||||
// reserve 2 bytes for NTCP header
|
||||
//TODO: This is VERY likely to cause alignment problems and I'm not willing to fix it now
|
||||
I2NPHeader * GetHeader () { return (I2NPHeader *)GetBuffer (); };
|
||||
uint8_t * GetPayload () { return GetBuffer () + sizeof(I2NPHeader); };
|
||||
uint8_t * GetBuffer () { return buf + offset; };
|
||||
|
@ -139,7 +138,6 @@ namespace tunnel
|
|||
}
|
||||
|
||||
// for SSU only
|
||||
//TODO: This is VERY likely to cause alignment problems and I'm not willing to fix it now
|
||||
uint8_t * GetSSUHeader () { return buf + offset + sizeof(I2NPHeader) - sizeof(I2NPHeaderShort); };
|
||||
void FromSSU (uint32_t msgID) // we have received SSU message and convert it to regular
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue