The Poor Man's (or Woman's) Intrusion Detection System
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
824 B

  1. //////////////////////////////////////////////////////////////////////
  2. // IP traffic analyzer - configuration file
  3. // Written by Jonathan A. Foster <jon@jfpossibilities.com>
  4. // Started May 14th, 2021
  5. // Copyright JF Possibilities, Inc. All rights reserved.
  6. //
  7. // This class reads and holds configuration data for "iptraffic". The
  8. // file is basically an INI format with '#' for remarks instead of ';'
  9. // and sections can be lists, not just name/value pairs. In fact this
  10. // first version is strictly only lists.
  11. //////////////////////////////////////////////////////////////////////
  12. #ifndef __JFP_IPTRAFFIC_CONF_H__
  13. #define __JFP_IPTRAFFIC_CONF_H__
  14. #include <string>
  15. #include <vector>
  16. #include "data.h"
  17. struct Config {
  18. std::vector<std::string> us;
  19. ConnList ignores;
  20. void load(const std::string &fname);
  21. };
  22. #endif