From 4dce71879f5d15af6754c15c606554b1feccdeac Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 18 Aug 2016 18:18:50 -0700 Subject: [PATCH] . --- controller/EmbeddedNetworkController.cpp | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/controller/EmbeddedNetworkController.cpp b/controller/EmbeddedNetworkController.cpp index d7d5c92c8..8d7e90c7f 100644 --- a/controller/EmbeddedNetworkController.cpp +++ b/controller/EmbeddedNetworkController.cpp @@ -50,7 +50,7 @@ using json = nlohmann::json; #define ZT_NETCONF_CONTROLLER_API_VERSION 3 // Number of requests to remember in member history -#define ZT_NETCONF_DB_MEMBER_HISTORY_LENGTH 64 +#define ZT_NETCONF_DB_MEMBER_HISTORY_LENGTH 16 // Min duration between requests for an address/nwid combo to prevent floods #define ZT_NETCONF_MIN_REQUEST_PERIOD 1000 @@ -540,6 +540,9 @@ NetworkController::ResultCode EmbeddedNetworkController::doNetworkConfigRequest( auto ipAssignmentPools = network["ipAssignmentPools"]; auto routes = network["routes"]; auto rules = network["rules"]; + auto capabilities = network["capabilities"]; + auto memberCapabilities = member["capabilities"]; + auto memberTags = member["tags"]; if (rules.is_array()) { for(unsigned long i=0;i 0)&&(capabilities.is_array())) { + std::map< uint64_t,json > capsById; + for(unsigned long i=0;i 0)) { + } + } + } + + if (memberTags.is_array()) { + } + if (routes.is_array()) { for(unsigned long i=0;i= ZT_MAX_NETWORK_ROUTES)