mikroSDK Reference Manual
snmp_vacm_mib_module.h
Go to the documentation of this file.
1
31
#ifndef _SNMP_VACM_MIB_MODULE_H
32
#define _SNMP_VACM_MIB_MODULE_H
33
34
//Dependencies
35
#include "
mibs/mib_common.h
"
36
#include "
snmp/snmp_agent.h
"
37
38
//SNMP VACM MIB module support
39
#ifndef SNMP_VACM_MIB_SUPPORT
40
#define SNMP_VACM_MIB_SUPPORT DISABLED
41
#elif (SNMP_VACM_MIB_SUPPORT != ENABLED && SNMP_VACM_MIB_SUPPORT != DISABLED)
42
#error SNMP_VACM_MIB_SUPPORT parameter is not valid
43
#endif
44
45
//Support for SET operations
46
#ifndef SNMP_VACM_MIB_SET_SUPPORT
47
#define SNMP_VACM_MIB_SET_SUPPORT DISABLED
48
#elif (SNMP_VACM_MIB_SET_SUPPORT != ENABLED && SNMP_VACM_MIB_SET_SUPPORT != DISABLED)
49
#error SNMP_VACM_MIB_SET_SUPPORT parameter is not valid
50
#endif
51
52
//C++ guard
53
#ifdef __cplusplus
54
extern
"C"
{
55
#endif
56
57
62
typedef
struct
63
{
64
SnmpAgentContext *context;
65
int32_t vacmViewSpinLock;
66
SnmpGroupEntry
tempGroupEntry;
67
SnmpAccessEntry
tempAccessEntry;
68
SnmpViewEntry
tempViewEntry;
69
}
SnmpVacmMibBase
;
70
71
72
//SNMP VACM MIB related constants
73
extern
SnmpVacmMibBase
snmpVacmMibBase;
74
extern
const
MibObject snmpVacmMibObjects[];
75
extern
const
MibModule
snmpVacmMibModule;
76
77
//C++ guard
78
#ifdef __cplusplus
79
}
80
#endif
81
82
#endif
mib_common.h
Common definitions for MIB modules.
snmp_agent.h
SNMP agent (Simple Network Management Protocol)
MibModule
MIB module.
Definition
mib_common.h:288
SnmpAccessEntry
Access table entry.
Definition
snmp_agent_vacm.h:95
SnmpGroupEntry
Group table entry.
Definition
snmp_agent_vacm.h:82
SnmpVacmMibBase
SNMP VACM MIB base.
Definition
snmp_vacm_mib_module.h:63
SnmpViewEntry
View table entry.
Definition
snmp_agent_vacm.h:113