diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-03 13:56:35 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-03 13:56:35 -0800 |
| commit | f8eb6b00674a218cef20fd2ad6803fdecabc82ab (patch) | |
| tree | f9cb962c9bfb60c41fb4721abcf1f40c51c2dc0c /controller/SqliteNetworkController.hpp | |
| parent | 7a63fdc447322da3630774a894822bbe6fbb708f (diff) | |
| download | infinitytier-f8eb6b00674a218cef20fd2ad6803fdecabc82ab.tar.gz infinitytier-f8eb6b00674a218cef20fd2ad6803fdecabc82ab.zip | |
Add NodeHistory table on sqlite controller.
Diffstat (limited to 'controller/SqliteNetworkController.hpp')
| -rw-r--r-- | controller/SqliteNetworkController.hpp | 27 |
1 files changed, 0 insertions, 27 deletions
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;i<ZT_SQLITENETWORKCONTROLLER_IN_MEMORY_LOG_SIZE;++i) - this->l[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<Address,uint64_t>,_LLEntry > _lastLog; - // Circuit tests outstanding struct _CircuitTestEntry { |
