* $Id: snmp_mib.h,v 1.2 2008/08/11 07:00:24 haraldkipp Exp $ *
Definition in file snmp_mib.h.
Go to the source code of this file.
Data Structures | |
struct | _SNMPVAR |
Typedefs | |
typedef int( | WMETHOD )(int, uint8_t *, uint8_t, size_t, OID *, size_t) |
typedef struct _SNMPVAR | SNMPVAR |
Functions | |
int | SnmpMibRegister (OID[], size_t, SNMPVAR *, int) |
Register MIB variables. | |
uint8_t * | SnmpMibFind (OID *, size_t *, uint8_t *, size_t *, uint16_t *, int, WMETHOD **, int *) |
Find MIB variable. |
Definition at line 48 of file snmp_mib.h.
Register MIB variables.
Definition at line 69 of file snmp_mib.c.
References malloc, memcpy(), and SnmpOidCmp().
uint8_t* SnmpMibFind | ( | OID * | name, | |
size_t * | namelen, | |||
uint8_t * | type, | |||
size_t * | len, | |||
uint16_t * | acl, | |||
int | exact, | |||
WMETHOD ** | wmethod, | |||
int * | no_obj | |||
) |
Find MIB variable.
name | ||
namelen | ||
type | ||
len | ||
acl | ||
exact | ||
wmethod | ||
no_obj |
Definition at line 108 of file snmp_mib.c.
References access(), free, malloc, memcpy(), SnmpOidTreeCmp(), _SNMPVAR::var_acl, _SNMPVAR::var_get, _SNMPVAR::var_name, _SNMPVAR::var_namelen, and _SNMPVAR::var_type.