snmp_agent_vacm.c
char_t writeViewName[SNMP_MAX_VIEW_NAME_LEN+1]
Definition: snmp_agent_vacm.h:103
SnmpViewEntry * snmpCreateViewEntry(SnmpAgentContext *context)
Create a new view entry.
Definition: snmp_agent_vacm.c:548
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
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
SnmpViewEntry * snmpSelectViewEntry(SnmpAgentContext *context, const char_t *viewName, const uint8_t *oid, size_t oidLen)
Find a view entry that matches the selection criteria.
Definition: snmp_agent_vacm.c:653
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
SnmpAccessEntry * snmpSelectAccessEntry(SnmpAgentContext *context, const char_t *groupName, const char_t *contextName, size_t contextNameLen, SnmpSecurityModel securityModel, SnmpSecurityLevel securityLevel)
Find an access entry that matches the selection criteria.
Definition: snmp_agent_vacm.c:435
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)
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
@ SNMP_SECURITY_LEVEL_NO_AUTH_NO_PRIV
Definition: snmp_agent_usm.h:220
bool_t oidMatch(const uint8_t *oid, size_t oidLen, const uint8_t *subtree, size_t subtreeLen, const uint8_t *mask, size_t maskLen)
Check whether an OID matches the specified subtree.
Definition: oid.c:245
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
View-based Access Control Model (VACM) for SNMP.
error_t snmpIsAccessAllowed(SnmpAgentContext *context, const SnmpMessage *message, const uint8_t *oid, size_t oidLen)
Access control verification.
Definition: snmp_agent_vacm.c:61
uint_t oidCountSubIdentifiers(const uint8_t *oid, size_t oidLen)
Calculate the number of sub-identifiers.
Definition: oid.c:386
TCP/IP stack core.
Debugging facilities.
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