mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-06 13:01:47 -07:00
Logging to NodeHistory, SQL queries.
This commit is contained in:
parent
f8eb6b0067
commit
2e04dc03f2
2 changed files with 89 additions and 52 deletions
|
@ -131,6 +131,9 @@ private:
|
|||
};
|
||||
std::map< uint64_t,_CircuitTestEntry > _circuitTests;
|
||||
|
||||
// Last request time by address, for rate limitation
|
||||
std::map< Address,uint64_t > _lastRequestTime;
|
||||
|
||||
sqlite3 *_db;
|
||||
|
||||
sqlite3_stmt *_sGetNetworkById;
|
||||
|
@ -138,6 +141,11 @@ private:
|
|||
sqlite3_stmt *_sCreateMember;
|
||||
sqlite3_stmt *_sGetNodeIdentity;
|
||||
sqlite3_stmt *_sCreateOrReplaceNode;
|
||||
sqlite3_stmt *_sGetMaxNodeHistoryNetworkVisitCounter;
|
||||
sqlite3_stmt *_sAddNodeHistoryEntry;
|
||||
sqlite3_stmt *_sDeleteOldNodeHistoryEntries;
|
||||
sqlite3_stmt *_sGetActiveNodesOnNetwork;
|
||||
sqlite3_stmt *_sGetNodeHistory;
|
||||
sqlite3_stmt *_sGetEtherTypesFromRuleTable;
|
||||
sqlite3_stmt *_sGetActiveBridges;
|
||||
sqlite3_stmt *_sGetIpAssignmentsForNode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue