snmp_mpd_mib_impl.c
Go to the documentation of this file.
1 /**
2  * @file snmp_mpd_mib_impl.c
3  * @brief SNMP MPD MIB module implementation
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  * @author Oryx Embedded SARL (www.oryx-embedded.com)
28  * @version 1.9.6
29  **/
30 
31 //Switch to the appropriate trace level
32 #define TRACE_LEVEL SNMP_TRACE_LEVEL
33 
34 //Dependencies
35 #include "core/net.h"
36 #include "mibs/mib_common.h"
38 #include "mibs/snmp_mpd_mib_impl.h"
39 #include "core/crypto.h"
40 #include "encoding/asn1.h"
41 #include "encoding/oid.h"
42 #include "debug.h"
43 
44 //Check TCP/IP stack configuration
45 #if (SNMP_MPD_MIB_SUPPORT == ENABLED)
46 
47 
48 /**
49  * @brief SNMP MPD MIB module initialization
50  * @return Error code
51  **/
52 
54 {
55  //Debug message
56  TRACE_INFO("Initializing SNMP MPD MIB base...\r\n");
57 
58  //Clear SNMP MPD MIB base
59  memset(&snmpMpdMibBase, 0, sizeof(snmpMpdMibBase));
60 
61  //Successful processing
62  return NO_ERROR;
63 }
64 
65 
66 /**
67  * @brief Load SNMP MPD MIB module
68  * @param[in] context Pointer to the SNMP agent context
69  * @return Error code
70  **/
71 
72 error_t snmpMpdMibLoad(void *context)
73 {
74  //Successful processing
75  return NO_ERROR;
76 }
77 
78 
79 /**
80  * @brief Unload SNMP MPD MIB module
81  * @param[in] context Pointer to the SNMP agent context
82  **/
83 
84 void snmpMpdMibUnload(void *context)
85 {
86 }
87 
88 
89 /**
90  * @brief Lock SNMP MPD MIB base
91  **/
92 
93 void snmpMpdMibLock(void)
94 {
95 }
96 
97 
98 /**
99  * @brief Unlock SNMP MPD MIB base
100  **/
101 
103 {
104 }
105 
106 #endif
void snmpMpdMibUnlock(void)
Unlock SNMP MPD MIB base.
SnmpMpdMibBase snmpMpdMibBase
SNMP MPD MIB base.
OID (Object Identifier)
SNMP MPD MIB module implementation.
void snmpMpdMibUnload(void *context)
Unload SNMP MPD MIB module.
error_t snmpMpdMibLoad(void *context)
Load SNMP MPD MIB module.
error_t
Error codes.
Definition: error.h:42
error_t snmpMpdMibInit(void)
SNMP MPD MIB module initialization.
General definitions for cryptographic algorithms.
#define TRACE_INFO(...)
Definition: debug.h:94
SNMP MPD MIB module.
Common definitions for MIB modules.
void snmpMpdMibLock(void)
Lock SNMP MPD MIB base.
TCP/IP stack core.
Success.
Definition: error.h:44
Debugging facilities.
ASN.1 (Abstract Syntax Notation One)