]> git.stg.codes - ssmd.git/blobdiff - src/settings.cpp
Removed GTS string.
[ssmd.git] / src / settings.cpp
index 5d04ad230a36ac78b482a9b394eea78d22f61b1b..4271faf0436c5493dc253dfc2bd44509e1c36dda 100644 (file)
@@ -1,8 +1,8 @@
 #include "logger.h"
 #include "settings.h"
 
-using GTS::Settings;
-using GTS::SettingsParser;
+using SSMD::Settings;
+using SSMD::SettingsParser;
 
 SettingsParser::SettingsParser()
     : _desc("Allowed options")
@@ -19,6 +19,7 @@ SettingsParser::SettingsParser()
         ("info-sync-interval,i", po::value<time_t>(), "info synchronization interval")
         ("up-profile-id", po::value<unsigned>(), "switch's upload profile id")
         ("down-profile-id", po::value<unsigned>(), "switch's download profile id")
+        ("max-acl-per-pdu", po::value<size_t>(), "maximum ACL's per PDU")
         ("data-url", po::value<std::string>(), "data access URL")
         ("version,v", "show gssmd version and exit")
     ;
@@ -78,6 +79,10 @@ void SettingsParser::init(int argc, char * argv[])
         _settings._downProfileId = vm["down-profile-id"].as<unsigned>();
     }
 
+    if (vm.count("max-acl-per-pdu")) {
+        _settings._downProfileId = vm["max-acl-per-pdu"].as<unsigned>();
+    }
+
     if (vm.count("data-url")) {
         _settings._dataURL = vm["data-url"].as<std::string>();
     }