Browse Source

services that can't be found are now listed unavailable

Stefano Acquaviti 6 years ago
parent
commit
b0f875b054
1 changed files with 2 additions and 2 deletions
  1. 2 2
      code_boost/src/cxx/statistics_db.cpp

+ 2 - 2
code_boost/src/cxx/statistics_db.cpp

@@ -238,7 +238,7 @@ void statistics_db::writeStatisticsPorts(std::unordered_map<ipAddress_inOut_port
             ipAddress_inOut_port e = it->first;
             ipAddress_inOut_port e = it->first;
 
 
             std::string portService = portServices[e.portNumber];
             std::string portService = portServices[e.portNumber];
-            if(portService.empty()) {portService = "unknown";}
+            if(portService.empty()) {portService = "unavailable";}
 
 
             query.bind(1, e.ipAddress);
             query.bind(1, e.ipAddress);
             query.bind(2, e.trafficDirection);
             query.bind(2, e.trafficDirection);
@@ -502,7 +502,7 @@ void statistics_db::readPortServicesFromNmap()
     else
     else
     {
     {
         std::cerr << "WARNING: " << nmapPath << " could not be opened! PortServices can't be read!" << std::endl;
         std::cerr << "WARNING: " << nmapPath << " could not be opened! PortServices can't be read!" << std::endl;
-        portServices.insert({0, "unknown"});
+        portServices.insert({0, "unavailable"});
     }
     }
 }
 }