don't copy RouterInfos and LeaseSets

This commit is contained in:
orignal 2014-07-21 20:14:11 -04:00
parent 207022a6bb
commit f3c6dd4d3d
6 changed files with 50 additions and 24 deletions

View file

@ -30,7 +30,20 @@ namespace data
m_BufferLen = len;
ReadFromBuffer ();
}
void RouterInfo::Update (const uint8_t * buf, int len)
{
m_IsUpdated = true;
m_IsUnreachable = false;
m_SupportedTransports = 0;
m_Caps = 0;
m_Addresses.clear ();
m_Properties.clear ();
memcpy (m_Buffer, buf, len);
m_BufferLen = len;
ReadFromBuffer ();
}
void RouterInfo::SetRouterIdentity (const Identity& identity)
{
m_RouterIdentity = identity;