mikroSDK Reference Manual
snmp_community_mib_module.h
Go to the documentation of this file.
1
36#ifndef _SNMP_COMMUNITY_MIB_MODULE_H
37#define _SNMP_COMMUNITY_MIB_MODULE_H
38
39//Dependencies
40#include "mibs/mib_common.h"
41#include "snmp/snmp_agent.h"
42
43//SNMP COMMUNITY MIB module support
44#ifndef SNMP_COMMUNITY_MIB_SUPPORT
45 #define SNMP_COMMUNITY_MIB_SUPPORT DISABLED
46#elif (SNMP_COMMUNITY_MIB_SUPPORT != ENABLED && SNMP_COMMUNITY_MIB_SUPPORT != DISABLED)
47 #error SNMP_COMMUNITY_MIB_SUPPORT parameter is not valid
48#endif
49
50//Support for SET operations
51#ifndef SNMP_COMMUNITY_MIB_SET_SUPPORT
52 #define SNMP_COMMUNITY_MIB_SET_SUPPORT DISABLED
53#elif (SNMP_COMMUNITY_MIB_SET_SUPPORT != ENABLED && SNMP_COMMUNITY_MIB_SET_SUPPORT != DISABLED)
54 #error SNMP_COMMUNITY_MIB_SET_SUPPORT parameter is not valid
55#endif
56
57//C++ guard
58#ifdef __cplusplus
59extern "C" {
60#endif
61
62
67typedef struct
68{
69 SnmpAgentContext *context;
70 SnmpUserEntry tempCommunity;
72
73
74//SNMP COMMUNITY MIB related constants
75extern SnmpCommunityMibBase snmpCommunityMibBase;
76extern const MibObject snmpCommunityMibObjects[];
77extern const MibModule snmpCommunityMibModule;
78
79//C++ guard
80#ifdef __cplusplus
81}
82#endif
83
84#endif
Common definitions for MIB modules.
SNMP agent (Simple Network Management Protocol)
MIB module.
Definition mib_common.h:288
SNMP COMMUNITY MIB base.
Definition snmp_community_mib_module.h:68
User table entry.
Definition snmp_agent_usm.h:295