LLDP MIB module implementation (lldpLocalSystemData subtree) More...
#include "core/net.h"
#include "mibs/mib_common.h"
#include "mibs/lldp_mib_module.h"
#include "mibs/lldp_mib_impl.h"
#include "mibs/lldp_mib_impl_local.h"
#include "core/crypto.h"
#include "encoding/asn1.h"
#include "encoding/oid.h"
#include "lldp/lldp_mgmt.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL SNMP_TRACE_LEVEL |
Functions | |
error_t | lldpMibGetLldpLocChassisIdSubtype (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen) |
Get lldpLocChassisIdSubtype object value. More... | |
error_t | lldpMibGetLldpLocChassisId (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen) |
Get lldpLocChassisId object value. More... | |
error_t | lldpMibGetLldpLocSysName (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen) |
Get lldpLocSysName object value. More... | |
error_t | lldpMibGetLldpLocSysDesc (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen) |
Get lldpLocSysDesc object value. More... | |
error_t | lldpMibGetLldpLocSysCapSupported (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen) |
Get lldpLocSysCapSupported object value. More... | |
error_t | lldpMibGetLldpLocSysCapEnabled (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen) |
Get lldpLocSysCapEnabled object value. More... | |
error_t | lldpMibGetLldpLocPortEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen) |
Get lldpLocPortEntry object value. More... | |
error_t | lldpMibGetNextLldpLocPortEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen) |
Get next lldpLocPortEntry object. More... | |
error_t | lldpMibGetLldpLocManAddrEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen) |
Get lldpLocManAddrEntry object value. More... | |
error_t | lldpMibGetNextLldpLocManAddrEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen) |
Get next lldpLocManAddrEntry object. More... | |
Detailed Description
LLDP MIB module implementation (lldpLocalSystemData subtree)
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.
- Version
- 2.4.4
Definition in file lldp_mib_impl_local.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL SNMP_TRACE_LEVEL |
Definition at line 32 of file lldp_mib_impl_local.c.
Function Documentation
◆ lldpMibGetLldpLocChassisId()
error_t lldpMibGetLldpLocChassisId | ( | const MibObject * | object, |
const uint8_t * | oid, | ||
size_t | oidLen, | ||
MibVariant * | value, | ||
size_t * | valueLen | ||
) |
Get lldpLocChassisId object value.
- Parameters
-
[in] object Pointer to the MIB object descriptor [in] oid Object identifier (object name and instance identifier) [in] oidLen Length of the OID, in bytes [out] value Object value [in,out] valueLen Length of the object value, in bytes
- Returns
- Error code
Definition at line 95 of file lldp_mib_impl_local.c.
◆ lldpMibGetLldpLocChassisIdSubtype()
error_t lldpMibGetLldpLocChassisIdSubtype | ( | const MibObject * | object, |
const uint8_t * | oid, | ||
size_t | oidLen, | ||
MibVariant * | value, | ||
size_t * | valueLen | ||
) |
Get lldpLocChassisIdSubtype object value.
- Parameters
-
[in] object Pointer to the MIB object descriptor [in] oid Object identifier (object name and instance identifier) [in] oidLen Length of the OID, in bytes [out] value Object value [in,out] valueLen Length of the object value, in bytes
- Returns
- Error code
Definition at line 60 of file lldp_mib_impl_local.c.
◆ lldpMibGetLldpLocManAddrEntry()
error_t lldpMibGetLldpLocManAddrEntry | ( | const MibObject * | object, |
const uint8_t * | oid, | ||
size_t | oidLen, | ||
MibVariant * | value, | ||
size_t * | valueLen | ||
) |
Get lldpLocManAddrEntry object value.
- Parameters
-
[in] object Pointer to the MIB object descriptor [in] oid Object identifier (object name and instance identifier) [in] oidLen Length of the OID, in bytes [out] value Object value [in,out] valueLen Length of the object value, in bytes
- Returns
- Error code
Definition at line 542 of file lldp_mib_impl_local.c.
◆ lldpMibGetLldpLocPortEntry()
error_t lldpMibGetLldpLocPortEntry | ( | const MibObject * | object, |
const uint8_t * | oid, | ||
size_t | oidLen, | ||
MibVariant * | value, | ||
size_t * | valueLen | ||
) |
Get lldpLocPortEntry object value.
- Parameters
-
[in] object Pointer to the MIB object descriptor [in] oid Object identifier (object name and instance identifier) [in] oidLen Length of the OID, in bytes [out] value Object value [in,out] valueLen Length of the object value, in bytes
- Returns
- Error code
Definition at line 337 of file lldp_mib_impl_local.c.
◆ lldpMibGetLldpLocSysCapEnabled()
error_t lldpMibGetLldpLocSysCapEnabled | ( | const MibObject * | object, |
const uint8_t * | oid, | ||
size_t | oidLen, | ||
MibVariant * | value, | ||
size_t * | valueLen | ||
) |
Get lldpLocSysCapEnabled object value.
- Parameters
-
[in] object Pointer to the MIB object descriptor [in] oid Object identifier (object name and instance identifier) [in] oidLen Length of the OID, in bytes [out] value Object value [in,out] valueLen Length of the object value, in bytes
- Returns
- Error code
Definition at line 283 of file lldp_mib_impl_local.c.
◆ lldpMibGetLldpLocSysCapSupported()
error_t lldpMibGetLldpLocSysCapSupported | ( | const MibObject * | object, |
const uint8_t * | oid, | ||
size_t | oidLen, | ||
MibVariant * | value, | ||
size_t * | valueLen | ||
) |
Get lldpLocSysCapSupported object value.
- Parameters
-
[in] object Pointer to the MIB object descriptor [in] oid Object identifier (object name and instance identifier) [in] oidLen Length of the OID, in bytes [out] value Object value [in,out] valueLen Length of the object value, in bytes
- Returns
- Error code
Definition at line 229 of file lldp_mib_impl_local.c.
◆ lldpMibGetLldpLocSysDesc()
error_t lldpMibGetLldpLocSysDesc | ( | const MibObject * | object, |
const uint8_t * | oid, | ||
size_t | oidLen, | ||
MibVariant * | value, | ||
size_t * | valueLen | ||
) |
Get lldpLocSysDesc object value.
- Parameters
-
[in] object Pointer to the MIB object descriptor [in] oid Object identifier (object name and instance identifier) [in] oidLen Length of the OID, in bytes [out] value Object value [in,out] valueLen Length of the object value, in bytes
- Returns
- Error code
Definition at line 185 of file lldp_mib_impl_local.c.
◆ lldpMibGetLldpLocSysName()
error_t lldpMibGetLldpLocSysName | ( | const MibObject * | object, |
const uint8_t * | oid, | ||
size_t | oidLen, | ||
MibVariant * | value, | ||
size_t * | valueLen | ||
) |
Get lldpLocSysName object value.
- Parameters
-
[in] object Pointer to the MIB object descriptor [in] oid Object identifier (object name and instance identifier) [in] oidLen Length of the OID, in bytes [out] value Object value [in,out] valueLen Length of the object value, in bytes
- Returns
- Error code
Definition at line 141 of file lldp_mib_impl_local.c.
◆ lldpMibGetNextLldpLocManAddrEntry()
error_t lldpMibGetNextLldpLocManAddrEntry | ( | const MibObject * | object, |
const uint8_t * | oid, | ||
size_t | oidLen, | ||
uint8_t * | nextOid, | ||
size_t * | nextOidLen | ||
) |
Get next lldpLocManAddrEntry object.
- Parameters
-
[in] object Pointer to the MIB object descriptor [in] oid Object identifier [in] oidLen Length of the OID, in bytes [out] nextOid OID of the next object in the MIB [out] nextOidLen Length of the next object identifier, in bytes
- Returns
- Error code
Definition at line 673 of file lldp_mib_impl_local.c.
◆ lldpMibGetNextLldpLocPortEntry()
error_t lldpMibGetNextLldpLocPortEntry | ( | const MibObject * | object, |
const uint8_t * | oid, | ||
size_t | oidLen, | ||
uint8_t * | nextOid, | ||
size_t * | nextOidLen | ||
) |
Get next lldpLocPortEntry object.
- Parameters
-
[in] object Pointer to the MIB object descriptor [in] oid Object identifier [in] oidLen Length of the OID, in bytes [out] nextOid OID of the next object in the MIB [out] nextOidLen Length of the next object identifier, in bytes
- Returns
- Error code
Definition at line 457 of file lldp_mib_impl_local.c.