31#ifndef _SNMP_MIB_MODULE_H
32#define _SNMP_MIB_MODULE_H
39#ifndef SNMP_MIB_SUPPORT
40 #define SNMP_MIB_SUPPORT DISABLED
41#elif (SNMP_MIB_SUPPORT != ENABLED && SNMP_MIB_SUPPORT != DISABLED)
42 #error SNMP_MIB_SUPPORT parameter is not valid
46#ifndef SNMP_MIB_SYS_DESCR_SIZE
47 #define SNMP_MIB_SYS_DESCR_SIZE 16
48#elif (SNMP_MIB_SYS_DESCR_SIZE < 0)
49 #error SNMP_MIB_SYS_DESCR_SIZE parameter is not valid
53#ifndef SNMP_MIB_SYS_OBJECT_ID_SIZE
54 #define SNMP_MIB_SYS_OBJECT_ID_SIZE 16
55#elif (SNMP_MIB_SYS_OBJECT_ID_SIZE < 0)
56 #error SNMP_MIB_SYS_OBJECT_ID_SIZE parameter is not valid
60#ifndef SNMP_MIB_SYS_CONTACT_SIZE
61 #define SNMP_MIB_SYS_CONTACT_SIZE 16
62#elif (SNMP_MIB_SYS_CONTACT_SIZE < 0)
63 #error SNMP_MIB_SYS_CONTACT_SIZE parameter is not valid
67#ifndef SNMP_MIB_SYS_NAME_SIZE
68 #define SNMP_MIB_SYS_NAME_SIZE 16
69#elif (SNMP_MIB_SYS_NAME_SIZE < 0)
70 #error SNMP_MIB_SYS_NAME_SIZE parameter is not valid
74#ifndef SNMP_MIB_SYS_LOCATION_SIZE
75 #define SNMP_MIB_SYS_LOCATION_SIZE 16
76#elif (SNMP_MIB_SYS_LOCATION_SIZE < 0)
77 #error SNMP_MIB_SYS_LOCATION_SIZE parameter is not valid
81#if (SNMP_MIB_SUPPORT == ENABLED)
82 #define SNMP_MIB_INC_COUNTER32(name, value) snmpMibBase.name += value
84 #define SNMP_MIB_INC_COUNTER32(name, value)
99 SNMP_MIB_SYS_SERVICE_PHYSICAL = 0x01,
100 SNMP_MIB_SYS_SERVICE_DATALINK = 0x02,
101 SNMP_MIB_SYS_SERVICE_INTERNET = 0x04,
102 SNMP_MIB_SYS_SERVICE_END_TO_END = 0x08,
103 SNMP_MIB_SYS_SERVICE_APPLICATIONS = 0x40
113 SNMP_MIB_AUTHEN_TRAPS_ENABLED = 1,
114 SNMP_MIB_AUTHEN_TRAPS_DISABLED = 2
124#if (SNMP_MIB_SYS_DESCR_SIZE > 0)
125 char_t sysDescr[SNMP_MIB_SYS_DESCR_SIZE];
128#if (SNMP_MIB_SYS_OBJECT_ID_SIZE > 0)
129 uint8_t sysObjectID[SNMP_MIB_SYS_OBJECT_ID_SIZE];
130 size_t sysObjectIDLen;
133#if (SNMP_MIB_SYS_CONTACT_SIZE > 0)
134 char_t sysContact[SNMP_MIB_SYS_CONTACT_SIZE];
135 size_t sysContactLen;
137#if (SNMP_MIB_SYS_NAME_SIZE > 0)
138 char_t sysName[SNMP_MIB_SYS_NAME_SIZE];
141#if (SNMP_MIB_SYS_LOCATION_SIZE > 0)
142 char_t sysLocation[SNMP_MIB_SYS_LOCATION_SIZE];
143 size_t sysLocationLen;
146 uint32_t sysORLastChange;
157 uint32_t snmpInBadVersions;
158 uint32_t snmpInBadCommunityNames;
159 uint32_t snmpInBadCommunityUses;
160 uint32_t snmpInASNParseErrs;
161 int32_t snmpEnableAuthenTraps;
162 uint32_t snmpSilentDrops;
163 uint32_t snmpProxyDrops;
173 int32_t snmpSetSerialNo;
183 SnmpAgentContext *context;
192extern const MibObject snmpMibObjects[];
Common definitions for MIB modules.
SNMP agent (Simple Network Management Protocol)
SnmpMibEnableAuthenTraps
Enabled/disabled state of authentication failure traps.
Definition snmp_mib_module.h:112
SnmpMibSysService
System services.
Definition snmp_mib_module.h:98
MIB module.
Definition mib_common.h:288
SNMP MIB base.
Definition snmp_mib_module.h:182
Set group.
Definition snmp_mib_module.h:172
SNMP group.
Definition snmp_mib_module.h:155
System group.
Definition snmp_mib_module.h:123