SNMP inform notifications. More...
#include "core/net.h"
#include "snmp/snmp_agent.h"
#include "snmp/snmp_agent_misc.h"
#include "snmp/snmp_agent_inform.h"
#include "mibs/mib2_module.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL SNMP_TRACE_LEVEL |
Functions | |
error_t | snmpFormatInformRequestMessage (SnmpAgentContext *context, SnmpVersion version, const char_t *userName, uint_t genericTrapType, uint_t specificTrapCode, const SnmpTrapObject *objectList, uint_t objectListSize) |
Format SNMP InformRequest message. More... | |
error_t | snmpFormatInformRequestPdu (SnmpAgentContext *context, SnmpVersion version, const char_t *userName, uint_t genericTrapType, uint_t specificTrapCode, const SnmpTrapObject *objectList, uint_t objectListSize) |
Format InformRequest-PDU. More... | |
error_t | snmpFormatGetRequestMessage (SnmpAgentContext *context, SnmpVersion version) |
Format SNMP GetRequest message. More... | |
error_t | snmpFormatGetRequestPdu (SnmpAgentContext *context, SnmpVersion version) |
Format GetRequest-PDU (engine ID discovery procedure) More... | |
error_t | snmpProcessGetResponsePdu (SnmpAgentContext *context) |
Process GetResponse-PDU. More... | |
error_t | snmpProcessReportPdu (SnmpAgentContext *context) |
Process Report-PDU. More... | |
Detailed Description
SNMP inform notifications.
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 snmp_agent_inform.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL SNMP_TRACE_LEVEL |
Definition at line 32 of file snmp_agent_inform.c.
Function Documentation
◆ snmpFormatGetRequestMessage()
error_t snmpFormatGetRequestMessage | ( | SnmpAgentContext * | context, |
SnmpVersion | version | ||
) |
Format SNMP GetRequest message.
- Parameters
-
[in] context Pointer to the SNMP agent context [in] version SNMP version identifier
- Returns
- Error code
Definition at line 334 of file snmp_agent_inform.c.
◆ snmpFormatGetRequestPdu()
error_t snmpFormatGetRequestPdu | ( | SnmpAgentContext * | context, |
SnmpVersion | version | ||
) |
Format GetRequest-PDU (engine ID discovery procedure)
- Parameters
-
[in] context Pointer to the SNMP agent context [in] version SNMP version identifier
- Returns
- Error code
Definition at line 372 of file snmp_agent_inform.c.
◆ snmpFormatInformRequestMessage()
error_t snmpFormatInformRequestMessage | ( | SnmpAgentContext * | context, |
SnmpVersion | version, | ||
const char_t * | userName, | ||
uint_t | genericTrapType, | ||
uint_t | specificTrapCode, | ||
const SnmpTrapObject * | objectList, | ||
uint_t | objectListSize | ||
) |
Format SNMP InformRequest message.
- Parameters
-
[in] context Pointer to the SNMP agent context [in] version SNMP version identifier [in] userName User name or community name [in] genericTrapType Generic trap type [in] specificTrapCode Specific code [in] objectList List of object names [in] objectListSize Number of entries in the list
- Returns
- Error code
Definition at line 58 of file snmp_agent_inform.c.
◆ snmpFormatInformRequestPdu()
error_t snmpFormatInformRequestPdu | ( | SnmpAgentContext * | context, |
SnmpVersion | version, | ||
const char_t * | userName, | ||
uint_t | genericTrapType, | ||
uint_t | specificTrapCode, | ||
const SnmpTrapObject * | objectList, | ||
uint_t | objectListSize | ||
) |
Format InformRequest-PDU.
- Parameters
-
[in] context Pointer to the SNMP agent context [in] version SNMP version identifier [in] userName User name or community name [in] genericTrapType Generic trap type [in] specificTrapCode Specific code [in] objectList List of object names [in] objectListSize Number of entries in the list
- Returns
- Error code
Definition at line 194 of file snmp_agent_inform.c.
◆ snmpProcessGetResponsePdu()
error_t snmpProcessGetResponsePdu | ( | SnmpAgentContext * | context | ) |
Process GetResponse-PDU.
- Parameters
-
[in] context Pointer to the SNMP agent context
- Returns
- Error code
Definition at line 441 of file snmp_agent_inform.c.
◆ snmpProcessReportPdu()
error_t snmpProcessReportPdu | ( | SnmpAgentContext * | context | ) |
Process Report-PDU.
- Parameters
-
[in] context Pointer to the SNMP agent context
- Returns
- Error code
Definition at line 477 of file snmp_agent_inform.c.