diff options
author | Grant Limberg <glimberg@gmail.com> | 2015-06-30 19:23:23 -0700 |
---|---|---|
committer | Grant Limberg <glimberg@gmail.com> | 2015-06-30 19:23:23 -0700 |
commit | d853dbf2d88d4c7b0016e4416b7d046801e4f65a (patch) | |
tree | 6e6e859a3da842b6158f04a2b110d0ed735eb9e8 /controller/SqliteNetworkController.hpp | |
parent | aee8e95d4961195b3251bcc8581677a8f0c0cdd8 (diff) | |
parent | 0cbbcf288455b8657134bf5be0861232daa6c7d9 (diff) | |
download | infinitytier-d853dbf2d88d4c7b0016e4416b7d046801e4f65a.tar.gz infinitytier-d853dbf2d88d4c7b0016e4416b7d046801e4f65a.zip |
Merge branch 'adamierymenko-dev' into android-jni
Diffstat (limited to 'controller/SqliteNetworkController.hpp')
-rw-r--r-- | controller/SqliteNetworkController.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/controller/SqliteNetworkController.hpp b/controller/SqliteNetworkController.hpp index 9cdbc404..a999bf7c 100644 --- a/controller/SqliteNetworkController.hpp +++ b/controller/SqliteNetworkController.hpp @@ -80,6 +80,13 @@ public: std::string &responseContentType); private: + enum IpAssignmentType { + // IP assignment is a static IP address + ZT_IP_ASSIGNMENT_TYPE_ADDRESS = 0, + // IP assignment is a network -- a route via this interface, not an address + ZT_IP_ASSIGNMENT_TYPE_NETWORK = 1 + }; + unsigned int _doCPGet( const std::vector<std::string> &path, const std::map<std::string,std::string> &urlArgs, @@ -102,9 +109,11 @@ private: sqlite3_stmt *_sGetActiveBridges; sqlite3_stmt *_sGetIpAssignmentsForNode; sqlite3_stmt *_sGetIpAssignmentPools; + sqlite3_stmt *_sGetLocalRoutes; sqlite3_stmt *_sCheckIfIpIsAllocated; sqlite3_stmt *_sAllocateIp; sqlite3_stmt *_sDeleteIpAllocations; + sqlite3_stmt *_sDeleteLocalRoutes; sqlite3_stmt *_sGetRelays; sqlite3_stmt *_sListNetworks; sqlite3_stmt *_sListNetworkMembers; |