snmp_mib.c File Reference

Go to the source code of this file.

Functions

int SnmpMibRegister (OID basename[], size_t baselen, SNMPVAR *vars, int num)
 Register MIB variables.
uint8_tSnmpMibFind (OID *name, size_t *namelen, uint8_t *type, size_t *len, uint16_t *acl, int exact, WMETHOD **wmethod, int *no_obj)
 Find MIB variable.


Function Documentation

int SnmpMibRegister ( OID  basename[],
size_t  baselen,
SNMPVAR vars,
int  num 
)

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.

Parameters:
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.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/