mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 13:03:45 +02:00
Missing deserialize stuff.
This commit is contained in:
parent
0f17077b3d
commit
b543868351
1 changed files with 2 additions and 0 deletions
|
@ -563,6 +563,8 @@ public:
|
||||||
if (_staticCount > ZT_MAX_NETWORK_STATIC_PHYSICAL_ADDRESSES)
|
if (_staticCount > ZT_MAX_NETWORK_STATIC_PHYSICAL_ADDRESSES)
|
||||||
throw std::invalid_argument("overflow (static addresses)");
|
throw std::invalid_argument("overflow (static addresses)");
|
||||||
for(unsigned int i=0;i<_staticCount;++i) {
|
for(unsigned int i=0;i<_staticCount;++i) {
|
||||||
|
_static[i].zt.setTo(b.field(p,ZT_ADDRESS_LENGTH),ZT_ADDRESS_LENGTH); p += ZT_ADDRESS_LENGTH;
|
||||||
|
p += _static[i].phy.deserialize(b,p);
|
||||||
}
|
}
|
||||||
|
|
||||||
_ruleCount = (unsigned int)b.template at<uint16_t>(p); p += 2;
|
_ruleCount = (unsigned int)b.template at<uint16_t>(p); p += 2;
|
||||||
|
|
Loading…
Add table
Reference in a new issue