snmp_mib.c File Reference

Go to the source code of this file.

Typedefs

typedef struct _SUBTREE SUBTREE

Functions

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


Typedef Documentation

typedef struct _SUBTREE SUBTREE


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().

u_char* SnmpMibFind ( OID name,
size_t *  namelen,
u_char type,
size_t *  len,
u_short 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/