snmptrapd_auth.h 627 B

123456789101112131415161718
  1. #ifndef SNMPTRAPD_AUTH_H
  2. #define SNMPTRAPD_AUTH_H
  3. extern "C" {
  4. void init_netsnmp_trapd_auth(void);
  5. int netsnmp_trapd_auth(netsnmp_pdu *pdu, netsnmp_transport *transport,
  6. netsnmp_trapd_handler *handler);
  7. int netsnmp_trapd_check_auth(int authtypes);
  8. #define TRAP_AUTH_LOG (1 << VACM_VIEW_LOG) /* displaying and logging */
  9. #define TRAP_AUTH_EXE (1 << VACM_VIEW_EXECUTE) /* executing code or binaries */
  10. #define TRAP_AUTH_NET (1 << VACM_VIEW_NET) /* forwarding and net access */
  11. #define TRAP_AUTH_ALL (TRAP_AUTH_LOG | TRAP_AUTH_EXE | TRAP_AUTH_NET)
  12. #define TRAP_AUTH_NONE 0
  13. }
  14. #endif /* SNMPTRAPD_AUTH_H */