Go to the source code of this file.
Data Structures | |
struct | VIEW_LIST |
struct | COMMUNITY_LIST |
Defines | |
#define | SNMP_VIEW_INCLUDED 1 |
#define | SNMP_VIEW_EXCLUDED 2 |
Functions | |
int | SnmpViewCreate (CONST char *, CONST OID *, size_t, int) |
int | SnmpViewFind (char *) |
int | SnmpCommunityCreate (CONST char *, int, int) |
Create a community entry. | |
int | SnmpCommunityFind (CONST char *, int *, int *) |
Find community entry by name. |
* $Id: snmp_config.h,v 1.2 2008/02/15 17:13:17 haraldkipp Exp $ *
Definition in file snmp_config.h.
#define SNMP_VIEW_INCLUDED 1 |
#define SNMP_VIEW_EXCLUDED 2 |
Definition at line 52 of file snmp_config.h.
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 51 of file snmp_config.c.
Referenced by main().
int SnmpViewFind | ( | char * | ) |
Definition at line 93 of file snmp_config.c.
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 148 of file snmp_config.c.
Referenced by main().
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 119 of file snmp_config.c.
Referenced by SnmpAgentProcessRequest().