bridge_mib_impl_static.c File Reference
#include "core/net.h"
#include "mibs/mib_common.h"
#include "bridge_mib_module.h"
#include "bridge_mib_impl.h"
#include "bridge_mib_impl_static.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 bridgeMibSetDot1dStaticEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
 Set dot1dStaticEntry object value. More...
 
error_t bridgeMibGetDot1dStaticEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get dot1dStaticEntry object value. More...
 
error_t bridgeMibGetNextDot1dStaticEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next dot1dStaticEntry object. More...
 

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   SNMP_TRACE_LEVEL

Definition at line 32 of file bridge_mib_impl_static.c.

Function Documentation

◆ bridgeMibGetDot1dStaticEntry()

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

Get dot1dStaticEntry 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 276 of file bridge_mib_impl_static.c.

◆ bridgeMibGetNextDot1dStaticEntry()

error_t bridgeMibGetNextDot1dStaticEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
uint8_t *  nextOid,
size_t *  nextOidLen 
)

Get next dot1dStaticEntry object.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier
[in]oidLenLength of the OID, in bytes
[out]nextOidOID of the next object in the MIB
[out]nextOidLenLength of the next object identifier, in bytes
Returns
Error code

Definition at line 441 of file bridge_mib_impl_static.c.

◆ bridgeMibSetDot1dStaticEntry()

error_t bridgeMibSetDot1dStaticEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
const MibVariant value,
size_t  valueLen,
bool_t  commit 
)

Set dot1dStaticEntry 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
[in]valueObject value
[in]valueLenLength of the object value, in bytes
[in]commitThis flag tells whether the changes shall be committed to the MIB base
Returns
Error code

Definition at line 61 of file bridge_mib_impl_static.c.