diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-06-29 14:52:09 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-06-29 14:52:09 -0700 |
| commit | 5c9411a671dbc62297863bfa732929e197557697 (patch) | |
| tree | e7dd5e91b1e5bc093ee6d3eb10537ccf8e1c199c /controller/SqliteNetworkController.hpp | |
| parent | 48a2ad032aa39dab2980787b2746360655c1859f (diff) | |
| download | infinitytier-5c9411a671dbc62297863bfa732929e197557697.tar.gz infinitytier-5c9411a671dbc62297863bfa732929e197557697.zip | |
Untested -- modifications to support IP ranges instead of ip/mask for IP assignment pools, also add portId to Rule for future use.
Diffstat (limited to 'controller/SqliteNetworkController.hpp')
| -rw-r--r-- | controller/SqliteNetworkController.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/controller/SqliteNetworkController.hpp b/controller/SqliteNetworkController.hpp index 9cdbc404..6b3a8628 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, |
