snmp_vacm_mib_impl.c
char_t writeViewName[SNMP_MAX_VIEW_NAME_LEN+1]
Definition: snmp_agent_vacm.h:103
error_t mibEncodeString(uint8_t *oid, size_t maxOidLen, size_t *pos, const char_t *string, bool_t implied)
Encode instance identifier (string)
Definition: mib_common.c:129
uint32_t netGetRandRange(uint32_t min, uint32_t max)
Generate a random value in the specified range.
Definition: net.c:413
SnmpViewEntry * snmpCreateViewEntry(SnmpAgentContext *context)
Create a new view entry.
Definition: snmp_agent_vacm.c:548
error_t snmpVacmMibInit(void)
SNMP VACM MIB module initialization.
Definition: snmp_vacm_mib_impl.c:55
error_t snmpVacmMibGetViewSpinLock(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get vacmViewSpinLock object value.
Definition: snmp_vacm_mib_impl.c:1476
SNMP VACM MIB module implementation.
OID (Object Identifier)
char_t contextPrefix[SNMP_MAX_CONTEXT_NAME_LEN+1]
Definition: snmp_agent_vacm.h:98
char_t groupName[SNMP_MAX_GROUP_NAME_LEN+1]
Definition: snmp_agent_vacm.h:86
error_t snmpVacmMibSetAccessEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set vacmAccessEntry object value.
Definition: snmp_vacm_mib_impl.c:764
SnmpGroupEntry * snmpFindGroupEntry(SnmpAgentContext *context, uint_t securityModel, const char_t *securityName, size_t securityNameLen)
Search the group table.
Definition: snmp_agent_vacm.c:275
SnmpGroupEntry * snmpCreateGroupEntry(SnmpAgentContext *context)
Create a new group entry.
Definition: snmp_agent_vacm.c:223
char_t securityName[SNMP_MAX_GROUP_NAME_LEN+1]
Definition: snmp_agent_vacm.h:85
SnmpAccessEntry * snmpCreateAccessEntry(SnmpAgentContext *context)
Create a new access entry.
Definition: snmp_agent_vacm.c:325
char_t groupName[SNMP_MAX_GROUP_NAME_LEN+1]
Definition: snmp_agent_vacm.h:97
int_t oidComp(const uint8_t *oid1, size_t oidLen1, const uint8_t *oid2, size_t oidLen2)
Compare object identifiers.
Definition: oid.c:103
SNMP agent (Simple Network Management Protocol)
error_t mibEncodeObjectIdentifier(uint8_t *oid, size_t maxOidLen, size_t *pos, const uint8_t *objectId, size_t objectIdLen, bool_t implied)
Encode instance identifier (object identifier)
Definition: mib_common.c:297
error_t snmpVacmMibSetSecurityToGroupEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set vacmSecurityToGroupEntry object value.
Definition: snmp_vacm_mib_impl.c:278
char_t readViewName[SNMP_MAX_VIEW_NAME_LEN+1]
Definition: snmp_agent_vacm.h:102
char_t notifyViewName[SNMP_MAX_VIEW_NAME_LEN+1]
Definition: snmp_agent_vacm.h:104
error_t snmpVacmMibGetNextSecurityToGroupEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next vacmSecurityToGroupEntry object.
Definition: snmp_vacm_mib_impl.c:630
SNMP VACM MIB module.
error_t snmpVacmMibGetContextEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get vacmContextEntry object value.
Definition: snmp_vacm_mib_impl.c:135
error_t snmpVacmMibGetViewTreeFamilyEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get vacmViewTreeFamilyEntry object value.
Definition: snmp_vacm_mib_impl.c:1741
SnmpAccessEntry tempAccessEntry
Definition: snmp_vacm_mib_module.h:67
void snmpVacmMibUnload(void *context)
Unload SNMP VACM MIB module.
Definition: snmp_vacm_mib_impl.c:92
error_t snmpVacmMibGetSecurityToGroupEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get vacmSecurityToGroupEntry object value.
Definition: snmp_vacm_mib_impl.c:533
error_t snmpVacmMibGetNextViewTreeFamilyEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next vacmViewTreeFamilyEntry object.
Definition: snmp_vacm_mib_impl.c:1844
@ SNMP_SECURITY_LEVEL_NO_AUTH_NO_PRIV
Definition: snmp_agent_usm.h:220
error_t snmpVacmMibSetViewSpinLock(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set vacmViewSpinLock object value.
Definition: snmp_vacm_mib_impl.c:1457
General definitions for cryptographic algorithms.
SnmpViewEntry * snmpFindViewEntry(SnmpAgentContext *context, const char_t *viewName, const uint8_t *subtree, size_t subtreeLen)
Search the view table for a given entry.
Definition: snmp_agent_vacm.c:600
Helper functions for SNMP agent.
error_t snmpVacmMibGetAccessEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get vacmAccessEntry object value.
Definition: snmp_vacm_mib_impl.c:1113
error_t mibDecodeIndex(const uint8_t *oid, size_t oidLen, size_t *pos, uint_t *index)
Decode instance identifier (index)
Definition: mib_common.c:64
error_t snmpVacmMibGetNextAccessEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next vacmAccessEntry object.
Definition: snmp_vacm_mib_impl.c:1271
Common definitions for MIB modules.
error_t snmpVacmMibGetNextContextEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next vacmContextEntry object.
Definition: snmp_vacm_mib_impl.c:214
error_t mibEncodeIndex(uint8_t *oid, size_t maxOidLen, size_t *pos, uint_t index)
Encode instance identifier (index)
Definition: mib_common.c:47
error_t mibTestAndIncSpinLock(int32_t *spinLock, int32_t value, bool_t commit)
Test and increment spin lock.
Definition: mib_common.c:1006
error_t mibDecodeString(const uint8_t *oid, size_t oidLen, size_t *pos, char_t *string, size_t maxStringLen, bool_t implied)
Decode instance identifier (string)
Definition: mib_common.c:149
error_t snmpVacmMibSetViewTreeFamilyEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set vacmViewTreeFamilyEntry object value.
Definition: snmp_vacm_mib_impl.c:1499
TCP/IP stack core.
Debugging facilities.
error_t mibDecodeObjectIdentifier(const uint8_t *oid, size_t oidLen, size_t *pos, uint8_t *objectId, size_t maxObjectIdLen, size_t *objectIdLen, bool_t implied)
Decode instance identifier (object identifier)
Definition: mib_common.c:377
ASN.1 (Abstract Syntax Notation One)
SnmpAccessEntry * snmpFindAccessEntry(SnmpAgentContext *context, const char_t *groupName, const char_t *contextPrefix, uint_t securityModel, uint_t securityLevel)
Search the access table for a given entry.
Definition: snmp_agent_vacm.c:378