snmp_framework_mib_impl.c File Reference

SNMP FRAMEWORK MIB module implementation. More...

#include "core/net.h"
#include "mibs/mib_common.h"
#include "mibs/snmp_framework_mib_module.h"
#include "mibs/snmp_framework_mib_impl.h"
#include "core/crypto.h"
#include "encoding/asn1.h"
#include "encoding/oid.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define TRACE_LEVEL   SNMP_TRACE_LEVEL
 

Functions

error_t snmpFrameworkMibInit (void)
 SNMP FRAMEWORK MIB module initialization. More...
 
error_t snmpFrameworkMibLoad (void *context)
 Load SNMP FRAMEWORK MIB module. More...
 
void snmpFrameworkMibUnload (void *context)
 Unload SNMP FRAMEWORK MIB module. More...
 
void snmpFrameworkMibLock (void)
 Lock SNMP FRAMEWORK MIB base. More...
 
void snmpFrameworkMibUnlock (void)
 Unlock SNMP FRAMEWORK MIB base. More...
 
error_t snmpFrameworkMibGetSnmpEngineID (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get snmpEngineID object value. More...
 
error_t snmpFrameworkMibGetSnmpEngineBoots (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get snmpEngineBoots object value. More...
 
error_t snmpFrameworkMibGetSnmpEngineTime (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get snmpEngineTime object value. More...
 
error_t snmpFrameworkMibGetSnmpEngineMaxMessageSize (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get snmpEngineMaxMessageSize object value. More...
 

Detailed Description

SNMP FRAMEWORK MIB module implementation.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneTCP Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.0

Definition in file snmp_framework_mib_impl.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   SNMP_TRACE_LEVEL

Definition at line 32 of file snmp_framework_mib_impl.c.

Function Documentation

◆ snmpFrameworkMibGetSnmpEngineBoots()

error_t snmpFrameworkMibGetSnmpEngineBoots ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get snmpEngineBoots object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 157 of file snmp_framework_mib_impl.c.

◆ snmpFrameworkMibGetSnmpEngineID()

error_t snmpFrameworkMibGetSnmpEngineID ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get snmpEngineID object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 122 of file snmp_framework_mib_impl.c.

◆ snmpFrameworkMibGetSnmpEngineMaxMessageSize()

error_t snmpFrameworkMibGetSnmpEngineMaxMessageSize ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get snmpEngineMaxMessageSize object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 215 of file snmp_framework_mib_impl.c.

◆ snmpFrameworkMibGetSnmpEngineTime()

error_t snmpFrameworkMibGetSnmpEngineTime ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get snmpEngineTime object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 186 of file snmp_framework_mib_impl.c.

◆ snmpFrameworkMibInit()

error_t snmpFrameworkMibInit ( void  )

SNMP FRAMEWORK MIB module initialization.

Returns
Error code

Definition at line 53 of file snmp_framework_mib_impl.c.

◆ snmpFrameworkMibLoad()

error_t snmpFrameworkMibLoad ( void *  context)

Load SNMP FRAMEWORK MIB module.

Parameters
[in]contextPointer to the SNMP agent context
Returns
Error code

Definition at line 72 of file snmp_framework_mib_impl.c.

◆ snmpFrameworkMibLock()

void snmpFrameworkMibLock ( void  )

Lock SNMP FRAMEWORK MIB base.

Definition at line 98 of file snmp_framework_mib_impl.c.

◆ snmpFrameworkMibUnload()

void snmpFrameworkMibUnload ( void *  context)

Unload SNMP FRAMEWORK MIB module.

Parameters
[in]contextPointer to the SNMP agent context

Definition at line 87 of file snmp_framework_mib_impl.c.

◆ snmpFrameworkMibUnlock()

void snmpFrameworkMibUnlock ( void  )

Unlock SNMP FRAMEWORK MIB base.

Definition at line 107 of file snmp_framework_mib_impl.c.