snmp_community_mib_module.h
Go to the documentation of this file.
1 /**
2  * @file snmp_community_mib_module.h
3  * @brief SNMP COMMUNITY MIB module
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
10  *
11  * This file is part of CycloneTCP Open.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software Foundation,
25  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26  *
27  * @section Description
28  *
29  * The SNMP-MIB describes managed objects which describe the behavior
30  * of an SNMP entity. Refer to RFC 3418 for more details
31  *
32  * @author Oryx Embedded SARL (www.oryx-embedded.com)
33  * @version 2.4.0
34  **/
35 
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
59 extern "C" {
60 #endif
61 
62 
63 /**
64  * @brief SNMP COMMUNITY MIB base
65  **/
66 
67 typedef struct
68 {
72 
73 
74 //SNMP COMMUNITY MIB related constants
76 extern const MibObject snmpCommunityMibObjects[];
78 
79 //C++ guard
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif
Common definitions for MIB modules.
#define MibObject
Definition: mib_common.h:46
SNMP agent (Simple Network Management Protocol)
#define SnmpAgentContext
Definition: snmp_agent.h:36
SnmpCommunityMibBase snmpCommunityMibBase
SNMP COMMUNITY MIB base.
const MibModule snmpCommunityMibModule
SNMP COMMUNITY MIB module.
const MibObject snmpCommunityMibObjects[]
SNMP COMMUNITY MIB objects.
MIB module.
Definition: mib_common.h:292
SNMP COMMUNITY MIB base.
User table entry.