Shrink NetworkConfig slightly.

This commit is contained in:
Adam Ierymenko 2016-04-12 13:32:41 -07:00
parent e28838805f
commit af471af8ef
2 changed files with 5 additions and 3 deletions

View File

@ -84,12 +84,12 @@ extern "C" {
/**
* Maximum number of local routes on a network
*/
#define ZT_MAX_NETWORK_LOCAL_ROUTES 64
#define ZT_MAX_NETWORK_LOCAL_ROUTES 32
/**
* Maximum number of statically assigned IP addresses per network endpoint using ZT address management (not DHCP)
*/
#define ZT_MAX_ZT_ASSIGNED_ADDRESSES 64
#define ZT_MAX_ZT_ASSIGNED_ADDRESSES 32
/**
* Maximum number of default routes / gateways on a network (ZT managed)
@ -104,7 +104,7 @@ extern "C" {
/**
* Maximum number of static devices on a network
*/
#define ZT_MAX_NETWORK_STATIC_DEVICES 64
#define ZT_MAX_NETWORK_STATIC_DEVICES 32
/**
* Maximum number of rules per network (can be increased)

View File

@ -36,6 +36,7 @@
#include "node/Packet.hpp"
#include "node/Salsa20.hpp"
#include "node/MAC.hpp"
#include "node/NetworkConfig.hpp"
#include "node/Peer.hpp"
#include "node/Dictionary.hpp"
#include "node/SHA512.hpp"
@ -1084,6 +1085,7 @@ int main(int argc,char **argv)
*/
std::cout << "[info] sizeof(void *) == " << sizeof(void *) << std::endl;
std::cout << "[info] sizeof(NetworkConfig) == " << sizeof(ZeroTier::NetworkConfig) << std::endl;
srand((unsigned int)time(0));