From f8eb6b00674a218cef20fd2ad6803fdecabc82ab Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 3 Feb 2016 13:56:35 -0800 Subject: Add NodeHistory table on sqlite controller. --- controller/SqliteNetworkController.hpp | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'controller/SqliteNetworkController.hpp') diff --git a/controller/SqliteNetworkController.hpp b/controller/SqliteNetworkController.hpp index d58b3fc9..6562058a 100644 --- a/controller/SqliteNetworkController.hpp +++ b/controller/SqliteNetworkController.hpp @@ -123,33 +123,6 @@ private: std::string _circuitTestPath; std::string _instanceId; - // Recent request log by device address and network ID - struct _LLEntry - { - _LLEntry() - { - for(long i=0;il[i].ts = 0; - this->lastRequestTime = 0; - this->totalRequests = 0; - } - - // Circular buffer of last log entries - struct { - uint64_t ts; // timestamp or 0 if circular buffer entry unused - char version[64]; - InetAddress fromAddr; - bool authorized; - } l[ZT_SQLITENETWORKCONTROLLER_IN_MEMORY_LOG_SIZE]; - - // Time of last request whether successful or not - uint64_t lastRequestTime; - - // Total requests by this address / network ID pair (also serves mod IN_MEMORY_LOG_SIZE as circular buffer ptr) - uint64_t totalRequests; - }; - std::map< std::pair,_LLEntry > _lastLog; - // Circuit tests outstanding struct _CircuitTestEntry { -- cgit v1.2.3