dns_requestacl_inc.cc 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. namespace {
  2. const char* const RequestACL_doc = "\
  3. The DNS Request ACL.\n\
  4. \n\
  5. It holds bunch of ordered entries, each one consisting of a check for\n\
  6. a given DNS Request context and an action, which is one of ACCEPT,\n\
  7. REJECT, or DROP, as defined in the isc.acl.acl module.\n\
  8. The checks are tested in the order and first match counts.\n\
  9. \n\
  10. A RequestACL object cannot be constructed directly; an application\n\
  11. must use isc.acl.dns.load_request_acl() to create a RequestACL object.\n\
  12. \n\
  13. ";
  14. const char* const RequestACL_execute_doc = "\
  15. execute(context) -> action \n\
  16. \n\
  17. The returned action is one of ACCEPT, REJECT or DROP as defined in\n\
  18. the isc.acl.acl module.\n\
  19. \n\
  20. This is the function that takes the ACL entries one by one, checks the\n\
  21. context against conditions and if it matches, returns the action that\n\
  22. belongs to the first matched entry or default action if nothing\n\
  23. matches.\n\
  24. \n\
  25. Parameters:\n\
  26. context The thing that should be checked. It is directly passed\n\
  27. to the checks.\n\
  28. \n\
  29. Return Value(s): The action for the ACL entry that first matches the\n\
  30. context.\n\
  31. ";
  32. } // unnamed namespace