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
40
extern
"C"
{
41
#endif
42
43
//SNMP agent related functions
44
void
snmpLockMib(SnmpAgentContext *context);
45
void
snmpUnlockMib(SnmpAgentContext *context);
46
47
SnmpUserEntry
*snmpCreateCommunityEntry(SnmpAgentContext *context);
48
49
SnmpUserEntry
*snmpFindCommunityEntry(SnmpAgentContext *context,
50
const
char_t *community,
size_t
length);
51
52
error_t
snmpParseVarBinding(
const
uint8_t *p,
53
size_t
length,
SnmpVarBind
*var,
size_t
*consumed);
54
55
error_t
snmpWriteVarBinding(SnmpAgentContext *context,
const
SnmpVarBind
*var);
56
error_t
snmpCopyVarBindingList(SnmpAgentContext *context);
57
58
error_t
snmpWriteTrapVarBindingList(SnmpAgentContext *context,
59
uint_t genericTrapType, uint_t specificTrapCode,
60
const
SnmpTrapObject
*objectList, uint_t objectListSize);
61
62
error_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_t
Error codes.
Definition
error.h:43
net.h
TCP/IP stack core.
snmp_agent.h
SNMP agent (Simple Network Management Protocol)
SnmpMessage
SNMP message.
Definition
snmp_agent_message.h:56
SnmpTrapObject
Object descriptor for trap notifications.
Definition
snmp_agent_trap.h:56
SnmpUserEntry
User table entry.
Definition
snmp_agent_usm.h:295
SnmpVarBind
Variable binding.
Definition
snmp_agent_message.h:114