mikroSDK Reference Manual
snmp_agent_misc.h
Go to the documentation of this file.
1
31#ifndef _SNMP_AGENT_MISC_H
32#define _SNMP_AGENT_MISC_H
33
34//Dependencies
35#include "core/net.h"
36#include "snmp/snmp_agent.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//SNMP agent related functions
44void snmpLockMib(SnmpAgentContext *context);
45void snmpUnlockMib(SnmpAgentContext *context);
46
47SnmpUserEntry *snmpCreateCommunityEntry(SnmpAgentContext *context);
48
49SnmpUserEntry *snmpFindCommunityEntry(SnmpAgentContext *context,
50 const char_t *community, size_t length);
51
52error_t snmpParseVarBinding(const uint8_t *p,
53 size_t length, SnmpVarBind *var, size_t *consumed);
54
55error_t snmpWriteVarBinding(SnmpAgentContext *context, const SnmpVarBind *var);
56error_t snmpCopyVarBindingList(SnmpAgentContext *context);
57
58error_t snmpWriteTrapVarBindingList(SnmpAgentContext *context,
59 uint_t genericTrapType, uint_t specificTrapCode,
60 const SnmpTrapObject *objectList, uint_t objectListSize);
61
62error_t snmpTranslateStatusCode(SnmpMessage *message, error_t status, uint_t index);
63
64//C++ guard
65#ifdef __cplusplus
66}
67#endif
68
69#endif
error_t
Error codes.
Definition error.h:43
TCP/IP stack core.
SNMP agent (Simple Network Management Protocol)
SNMP message.
Definition snmp_agent_message.h:56
Object descriptor for trap notifications.
Definition snmp_agent_trap.h:56
User table entry.
Definition snmp_agent_usm.h:295
Variable binding.
Definition snmp_agent_message.h:114