mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-05-31 14:30:51 +00:00
Disable debug code.
This commit is contained in:
parent
93b673043c
commit
0bcc7d46a3
@ -353,8 +353,6 @@ public:
|
|||||||
template<unsigned int C>
|
template<unsigned int C>
|
||||||
inline void serialize(Buffer<C> &b) const
|
inline void serialize(Buffer<C> &b) const
|
||||||
{
|
{
|
||||||
printf("!!! sending\n");
|
|
||||||
|
|
||||||
b.append((uint16_t)1); // version
|
b.append((uint16_t)1); // version
|
||||||
|
|
||||||
b.append((uint64_t)networkId);
|
b.append((uint64_t)networkId);
|
||||||
@ -473,8 +471,6 @@ public:
|
|||||||
this->com.serialize(b);
|
this->com.serialize(b);
|
||||||
|
|
||||||
b.append((uint16_t)0); // extended bytes, currently 0 since unused
|
b.append((uint16_t)0); // extended bytes, currently 0 since unused
|
||||||
|
|
||||||
dump();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template<unsigned int C>
|
template<unsigned int C>
|
||||||
@ -482,8 +478,6 @@ public:
|
|||||||
{
|
{
|
||||||
memset(this,0,sizeof(NetworkConfig));
|
memset(this,0,sizeof(NetworkConfig));
|
||||||
|
|
||||||
printf("!!! deserializing\n");
|
|
||||||
|
|
||||||
unsigned int p = startAt;
|
unsigned int p = startAt;
|
||||||
|
|
||||||
if (b.template at<uint16_t>(p) != 1)
|
if (b.template at<uint16_t>(p) != 1)
|
||||||
@ -608,7 +602,6 @@ public:
|
|||||||
|
|
||||||
p += b.template at<uint16_t>(p) + 2;
|
p += b.template at<uint16_t>(p) + 2;
|
||||||
|
|
||||||
dump();
|
|
||||||
return (p - startAt);
|
return (p - startAt);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -616,6 +609,7 @@ public:
|
|||||||
void fromDictionary(const char *ds,unsigned int dslen);
|
void fromDictionary(const char *ds,unsigned int dslen);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
inline void dump() const
|
inline void dump() const
|
||||||
{
|
{
|
||||||
printf("networkId==%.16llx\n",networkId);
|
printf("networkId==%.16llx\n",networkId);
|
||||||
@ -644,6 +638,7 @@ public:
|
|||||||
printf("name==%s\n",name);
|
printf("name==%s\n",name);
|
||||||
printf("com==%s\n",com.toString().c_str());
|
printf("com==%s\n",com.toString().c_str());
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Network ID that this configuration applies to
|
* Network ID that this configuration applies to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user