snmp_mpd_mib_module.c
Go to the documentation of this file.
1 /**
2  * @file snmp_mpd_mib_module.c
3  * @brief SNMP MPD MIB module
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2010-2019 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-MPD-MIB defines managed objects for SNMP message processing and
30  * dispatching. Refer to RFC 3412 for more details
31  *
32  * @author Oryx Embedded SARL (www.oryx-embedded.com)
33  * @version 1.9.6
34  **/
35 
36 //Switch to the appropriate trace level
37 #define TRACE_LEVEL SNMP_TRACE_LEVEL
38 
39 //Dependencies
40 #include "core/net.h"
41 #include "mibs/mib_common.h"
43 #include "mibs/snmp_mpd_mib_impl.h"
44 #include "core/crypto.h"
45 #include "encoding/asn1.h"
46 #include "encoding/oid.h"
47 #include "debug.h"
48 
49 //Check TCP/IP stack configuration
50 #if (SNMP_MPD_MIB_SUPPORT == ENABLED)
51 
52 
53 /**
54  * @brief SNMP MPD MIB base
55  **/
56 
58 
59 
60 /**
61  * @brief SNMP MPD MIB objects
62  **/
63 
65 {
66  //snmpUnknownSecurityModels object (1.3.6.1.6.3.11.2.1.1)
67  {
68  "snmpUnknownSecurityModels",
69  {43, 6, 1, 6, 3, 11, 2, 1, 1},
70  9,
75  NULL,
76  sizeof(uint32_t),
77  NULL,
78  NULL,
79  NULL
80  },
81  //snmpInvalidMsgs object (1.3.6.1.6.3.11.2.1.2)
82  {
83  "snmpInvalidMsgs",
84  {43, 6, 1, 6, 3, 11, 2, 1, 2},
85  9,
90  NULL,
91  sizeof(uint32_t),
92  NULL,
93  NULL,
94  NULL
95  },
96  //snmpUnknownPDUHandlers object (1.3.6.1.6.3.11.2.1.3)
97  {
98  "snmpUnknownPDUHandlers",
99  {43, 6, 1, 6, 3, 11, 2, 1, 3},
100  9,
105  NULL,
106  sizeof(uint32_t),
107  NULL,
108  NULL,
109  NULL
110  }
111 };
112 
113 
114 /**
115  * @brief SNMP MPD MIB module
116  **/
117 
119 {
120  "SNMP-MPD-MIB",
121  {43, 6, 1, 6, 3, 11},
122  6,
130 };
131 
132 #endif
void snmpMpdMibUnlock(void)
Unlock SNMP MPD MIB base.
SnmpMpdMibBase snmpMpdMibBase
SNMP MPD MIB base.
OID (Object Identifier)
@ MIB_ACCESS_READ_ONLY
Definition: mib_common.h:79
SNMP MPD MIB module implementation.
void snmpMpdMibUnload(void *context)
Unload SNMP MPD MIB module.
error_t snmpMpdMibLoad(void *context)
Load SNMP MPD MIB module.
@ MIB_TYPE_COUNTER32
Definition: mib_common.h:61
const MibObject snmpMpdMibObjects[]
SNMP MPD MIB objects.
error_t snmpMpdMibInit(void)
SNMP MPD MIB module initialization.
const MibModule snmpMpdMibModule
SNMP MPD MIB module.
General definitions for cryptographic algorithms.
SNMP MPD MIB base.
MIB module.
Definition: mib_common.h:287
SNMP MPD MIB module.
uint32_t snmpUnknownPDUHandlers
Common definitions for MIB modules.
#define MibObject
Definition: mib_common.h:46
void snmpMpdMibLock(void)
Lock SNMP MPD MIB base.
uint32_t snmpUnknownSecurityModels
TCP/IP stack core.
#define ASN1_CLASS_APPLICATION
Definition: asn1.h:49
Debugging facilities.
ASN.1 (Abstract Syntax Notation One)
#define arraysize(a)
Definition: os_port.h:70