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  * Copyright (C) 2010-2018 Oryx Embedded SARL. All rights reserved.
8  *
9  * This file is part of CycloneTCP Open.
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software Foundation,
23  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24  *
25  * @section Description
26  *
27  * The SNMP-MPD-MIB defines managed objects for SNMP message processing and
28  * dispatching. Refer to RFC 3412 for more details
29  *
30  * @author Oryx Embedded SARL (www.oryx-embedded.com)
31  * @version 1.9.0
32  **/
33 
34 //Switch to the appropriate trace level
35 #define TRACE_LEVEL SNMP_TRACE_LEVEL
36 
37 //Dependencies
38 #include "core/net.h"
39 #include "mibs/mib_common.h"
41 #include "mibs/snmp_mpd_mib_impl.h"
42 #include "core/crypto.h"
43 #include "encoding/asn1.h"
44 #include "encoding/oid.h"
45 #include "debug.h"
46 
47 //Check TCP/IP stack configuration
48 #if (SNMP_MPD_MIB_SUPPORT == ENABLED)
49 
50 
51 /**
52  * @brief SNMP MPD MIB base
53  **/
54 
56 
57 
58 /**
59  * @brief SNMP MPD MIB objects
60  **/
61 
63 {
64  //snmpUnknownSecurityModels object (1.3.6.1.6.3.11.2.1.1)
65  {
66  "snmpUnknownSecurityModels",
67  {43, 6, 1, 6, 3, 11, 2, 1, 1},
68  9,
73  NULL,
74  sizeof(uint32_t),
75  NULL,
76  NULL,
77  NULL
78  },
79  //snmpInvalidMsgs object (1.3.6.1.6.3.11.2.1.2)
80  {
81  "snmpInvalidMsgs",
82  {43, 6, 1, 6, 3, 11, 2, 1, 2},
83  9,
88  NULL,
89  sizeof(uint32_t),
90  NULL,
91  NULL,
92  NULL
93  },
94  //snmpUnknownPDUHandlers object (1.3.6.1.6.3.11.2.1.3)
95  {
96  "snmpUnknownPDUHandlers",
97  {43, 6, 1, 6, 3, 11, 2, 1, 3},
98  9,
103  NULL,
104  sizeof(uint32_t),
105  NULL,
106  NULL,
107  NULL
108  }
109 };
110 
111 
112 /**
113  * @brief SNMP MPD MIB module
114  **/
115 
117 {
118  "SNMP-MPD-MIB",
119  {43, 6, 1, 6, 3, 11},
120  6,
128 };
129 
130 #endif
void snmpMpdMibLock(void)
Lock SNMP MPD MIB base.
SNMP MPD MIB base.
TCP/IP stack core.
SnmpMpdMibBase snmpMpdMibBase
SNMP MPD MIB base.
Debugging facilities.
#define MibObject
Definition: mib_common.h:44
General definitions for cryptographic algorithms.
error_t snmpMpdMibInit(void)
SNMP MPD MIB module initialization.
OID (Object Identifier)
#define arraysize(a)
Definition: os_port.h:68
SNMP MPD MIB module.
ASN.1 (Abstract Syntax Notation One)
#define ASN1_CLASS_APPLICATION
Definition: asn1.h:46
const MibObject snmpMpdMibObjects[]
SNMP MPD MIB objects.
const MibModule snmpMpdMibModule
SNMP MPD MIB module.
uint32_t snmpUnknownPDUHandlers
error_t snmpMpdMibLoad(void *context)
Load SNMP MPD MIB module.
SNMP MPD MIB module implementation.
void snmpMpdMibUnload(void *context)
Unload SNMP MPD MIB module.
uint32_t snmpUnknownSecurityModels
Common definitions for MIB modules.
MIB module.
Definition: mib_common.h:285
void snmpMpdMibUnlock(void)
Unlock SNMP MPD MIB base.