Go to the source code of this file.
Functions | |
int | SnmpViewCreate (CONST char *name, CONST OID *subtree, size_t subtreelen, int type) |
int | SnmpViewFind (char *name) |
int | SnmpCommunityFind (CONST char *name, int *readView, int *writeView) |
Find community entry by name. | |
int | SnmpCommunityCreate (CONST char *name, int readView, int writeView) |
Create a community entry. |
int SnmpViewCreate | ( | CONST char * | name, | |
CONST OID * | subtree, | |||
size_t | subtreelen, | |||
int | type | |||
) |
name | Symbolic name of this view. | |
type | Either SNMP_VIEW_INCLUDED or SNMP_VIEW_EXCLUDED. |
Definition at line 50 of file snmp_config.c.
References malloc, memset(), _viewEntry::next, strcmp(), strcpy(), strlen(), _viewEntry::view_index, _viewEntry::view_name, _viewEntry::view_subtree, _viewEntry::view_subtree_len, and _viewEntry::view_type.
int SnmpViewFind | ( | char * | name | ) |
Definition at line 92 of file snmp_config.c.
References _viewEntry::next, strcmp(), _viewEntry::view_index, and _viewEntry::view_name.
int SnmpCommunityFind | ( | CONST char * | name, | |
int * | readView, | |||
int * | writeView | |||
) |
Find community entry by name.
name | Community name. | |
readView | Pointer to a variable that receives the view index for read access. | |
writeView | Pointer to a variable that receives the view index for write access. |
Definition at line 118 of file snmp_config.c.
References _communityEntry::comm_name, _communityEntry::comm_read_view, _communityEntry::comm_write_view, _communityEntry::next, and strcmp().
Referenced by SnmpAgentProcessRequest().
int SnmpCommunityCreate | ( | CONST char * | name, | |
int | readView, | |||
int | writeView | |||
) |
Create a community entry.
name | Community name. | |
readView | View index for read access, obtained from a previous call to SnmpViewCreate(). | |
writeView | View index for write access, obtained from a previous call to SnmpViewCreate(). |
Definition at line 147 of file snmp_config.c.
References _communityEntry::comm_name, _communityEntry::comm_read_view, _communityEntry::comm_write_view, malloc, memset(), _communityEntry::next, strcmp(), strcpy(), and strlen().