MIB object access. More...
Go to the source code of this file.
Functions | |
| error_t | snmpSetObjectValue (SnmpAgentContext *context, const SnmpMessage *message, SnmpVarBind *var, bool_t commit) |
| Assign object value. More... | |
| error_t | snmpGetObjectValue (SnmpAgentContext *context, const SnmpMessage *message, SnmpVarBind *var) |
| Retrieve object value. More... | |
| error_t | snmpGetNextObject (SnmpAgentContext *context, const SnmpMessage *message, SnmpVarBind *var) |
| Search MIBs for the next object. More... | |
| error_t | snmpFindMibObject (SnmpAgentContext *context, const uint8_t *oid, size_t oidLen, const MibObject **object) |
| Search MIBs for the given object. More... | |
Detailed Description
MIB object access.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2025 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.5.4
Definition in file snmp_agent_object.h.
Function Documentation
◆ snmpFindMibObject()
| error_t snmpFindMibObject | ( | SnmpAgentContext * | context, |
| const uint8_t * | oid, | ||
| size_t | oidLen, | ||
| const MibObject ** | object | ||
| ) |
Search MIBs for the given object.
- Parameters
-
[in] context Pointer to the SNMP agent context [in] oid Object identifier [in] oidLen Length of the OID [out] object Pointer the MIB object descriptor
- Returns
- Error code
Definition at line 688 of file snmp_agent_object.c.
◆ snmpGetNextObject()
| error_t snmpGetNextObject | ( | SnmpAgentContext * | context, |
| const SnmpMessage * | message, | ||
| SnmpVarBind * | var | ||
| ) |
Search MIBs for the next object.
- Parameters
-
[in] context Pointer to the SNMP agent context [in] message Pointer to the received SNMP message [in] var Variable binding
- Returns
- Error pointer
Definition at line 430 of file snmp_agent_object.c.
◆ snmpGetObjectValue()
| error_t snmpGetObjectValue | ( | SnmpAgentContext * | context, |
| const SnmpMessage * | message, | ||
| SnmpVarBind * | var | ||
| ) |
Retrieve object value.
- Parameters
-
[in] context Pointer to the SNMP agent context [in] message Pointer to the received SNMP message [out] var Variable binding
- Returns
- Error code
Definition at line 232 of file snmp_agent_object.c.
◆ snmpSetObjectValue()
| error_t snmpSetObjectValue | ( | SnmpAgentContext * | context, |
| const SnmpMessage * | message, | ||
| SnmpVarBind * | var, | ||
| bool_t | commit | ||
| ) |
Assign object value.
- Parameters
-
[in] context Pointer to the SNMP agent context [in] message Pointer to the received SNMP message [in] var Variable binding [in] commit This flag specifies whether the changes should be committed to the MIB base
- Returns
- Error code
Definition at line 57 of file snmp_agent_object.c.
