bridge_mib_impl_tp.c File Reference
#include "core/net.h"
#include "mibs/mib_common.h"
#include "mibs/bridge_mib_module.h"
#include "mibs/bridge_mib_impl.h"
#include "mibs/bridge_mib_impl_tp.h"
#include "core/crypto.h"
#include "encoding/asn1.h"
#include "encoding/oid.h"
#include "stp/stp.h"
#include "stp/stp_mgmt.h"
#include "rstp/rstp.h"
#include "rstp/rstp_mgmt.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define TRACE_LEVEL   SNMP_TRACE_LEVEL
 

Functions

error_t bridgeMibGetDot1dTpLearnedEntryDiscards (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get dot1dTpLearnedEntryDiscards object value. More...
 
error_t bridgeMibSetDot1dTpAgingTime (const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
 Set dot1dTpAgingTime object value. More...
 
error_t bridgeMibGetDot1dTpAgingTime (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get dot1dTpAgingTime object value. More...
 
error_t bridgeMibGetDot1dTpFdbEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get dot1dTpFdbEntry object value. More...
 
error_t bridgeMibGetNextDot1dTpFdbEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next dot1dTpFdbEntry object. More...
 
error_t bridgeMibGetDot1dTpPortEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get dot1dTpPortEntry object value. More...
 
error_t bridgeMibGetNextDot1dTpPortEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next dot1dTpPortEntry object. More...
 

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   SNMP_TRACE_LEVEL

Definition at line 32 of file bridge_mib_impl_tp.c.

Function Documentation

◆ bridgeMibGetDot1dTpAgingTime()

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

Get dot1dTpAgingTime 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 150 of file bridge_mib_impl_tp.c.

◆ bridgeMibGetDot1dTpFdbEntry()

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

Get dot1dTpFdbEntry 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 209 of file bridge_mib_impl_tp.c.

◆ bridgeMibGetDot1dTpLearnedEntryDiscards()

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

Get dot1dTpLearnedEntryDiscards 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 63 of file bridge_mib_impl_tp.c.

◆ bridgeMibGetDot1dTpPortEntry()

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

Get dot1dTpPortEntry 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 425 of file bridge_mib_impl_tp.c.

◆ bridgeMibGetNextDot1dTpFdbEntry()

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

Get next dot1dTpFdbEntry 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 322 of file bridge_mib_impl_tp.c.

◆ bridgeMibGetNextDot1dTpPortEntry()

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

Get next dot1dTpPortEntry 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 506 of file bridge_mib_impl_tp.c.

◆ bridgeMibSetDot1dTpAgingTime()

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

Set dot1dTpAgingTime 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 88 of file bridge_mib_impl_tp.c.