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.
 
 
 
 

37 lines
1.0 KiB

  1. //////////////////////////////////////////////////////////////////////
  2. // Control Panel and domain control data
  3. // Written by Jonathan A. Foster <ChipMaster@YeOlPiShack.net>
  4. // Started August 13th, 2021
  5. // Copyright JF Possibilities, Inc. All rights reserved.
  6. //
  7. // Data for dealing with white / black lists.
  8. //////////////////////////////////////////////////////////////////////
  9. #ifndef __CONTROL_DATA_H__
  10. #define __CONTROL_DATA_H__
  11. #include <string>
  12. #include <vector>
  13. #include <cppcms/base_content.h>
  14. //#include <booster/function.h>
  15. //#include <cppcms/serialization.h>
  16. struct Domain {
  17. enum STATUS {undecided, accepted, blocked};
  18. std::string name; // domain name
  19. std::string decided; // since C++ doesn't have a date/time
  20. int status; // how we should handle it
  21. };
  22. struct DomainList :public cppcms::base_content {
  23. std::vector<Domain> list;
  24. std::string filter; // Which filter was used to show list
  25. std::string error;
  26. int page, pages, page_size, count;
  27. };
  28. #endif