From 96fa3f75508430e735b3d7ab8280011d40f2d74a Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 2 Oct 2014 16:33:08 -0700 Subject: Work on in-place testnet support. --- node/Constants.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'node') diff --git a/node/Constants.hpp b/node/Constants.hpp index 5d4849c2..55cc4777 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -416,4 +416,17 @@ */ #define ZT_IPC_TIMEOUT 600 +/** + * A test pseudo-network-ID that can be joined + * + * Joining this network ID will result in a network with no IP addressing + * and default parameters. No network configuration master will be consulted + * and instead a static config will be used. This is used in built-in testnet + * scenarios and can also be used for external testing. + * + * This is an impossible real network ID since 0xff is a reserved address + * prefix. + */ +#define ZT_TEST_NETWORK_ID 0xffffffffffffffffULL + #endif -- cgit v1.2.3