Browse Source

Shrink NetworkConfig slightly.

pull/1/head
Adam Ierymenko 10 years ago
parent
commit
af471af8ef
  1. 6
      include/ZeroTierOne.h
  2. 2
      selftest.cpp

6
include/ZeroTierOne.h

@ -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)

2
selftest.cpp

@ -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));

Loading…
Cancel
Save