mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-29 17:28:52 +00:00
Shrink NetworkConfig slightly.
This commit is contained in:
parent
e28838805f
commit
af471af8ef
@ -84,12 +84,12 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* Maximum number of local routes on a network
|
* 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)
|
* 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)
|
* 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
|
* 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)
|
* Maximum number of rules per network (can be increased)
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
#include "node/Packet.hpp"
|
#include "node/Packet.hpp"
|
||||||
#include "node/Salsa20.hpp"
|
#include "node/Salsa20.hpp"
|
||||||
#include "node/MAC.hpp"
|
#include "node/MAC.hpp"
|
||||||
|
#include "node/NetworkConfig.hpp"
|
||||||
#include "node/Peer.hpp"
|
#include "node/Peer.hpp"
|
||||||
#include "node/Dictionary.hpp"
|
#include "node/Dictionary.hpp"
|
||||||
#include "node/SHA512.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(void *) == " << sizeof(void *) << std::endl;
|
||||||
|
std::cout << "[info] sizeof(NetworkConfig) == " << sizeof(ZeroTier::NetworkConfig) << std::endl;
|
||||||
|
|
||||||
srand((unsigned int)time(0));
|
srand((unsigned int)time(0));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user