File: snmptrapd_auth.h

package info (click to toggle)
net-snmp 5.9.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 37,540 kB
  • sloc: ansic: 282,201; perl: 17,710; sh: 12,006; makefile: 2,712; python: 735; xml: 663; pascal: 62; sql: 47
file content (16 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef SNMPTRAPD_AUTH_H
#define SNMPTRAPD_AUTH_H

void init_netsnmp_trapd_auth(void);
int netsnmp_trapd_auth(netsnmp_pdu *pdu, netsnmp_transport *transport,
                       netsnmp_trapd_handler *handler);
int netsnmp_trapd_check_auth(int authtypes);

#define TRAP_AUTH_LOG (1 << VACM_VIEW_LOG)      /* displaying and logging */
#define TRAP_AUTH_EXE (1 << VACM_VIEW_EXECUTE)  /* executing code or binaries */
#define TRAP_AUTH_NET (1 << VACM_VIEW_NET)      /* forwarding and net access */

#define TRAP_AUTH_ALL (TRAP_AUTH_LOG | TRAP_AUTH_EXE | TRAP_AUTH_NET)
#define TRAP_AUTH_NONE 0

#endif /* SNMPTRAPD_AUTH_H */