|
nfs-ganesha 1.4
|
register.h : registration functions More...
#include "snmp_adm.h"Go to the source code of this file.
Functions | |
| int | register_ro_string (oid *myoid, size_t oid_len, char *string, netsnmp_handler_registration **phandler) |
| int | reg_scal (oid *myoid, size_t oid_len, void *value, unsigned char type, int access, netsnmp_handler_registration *phandler_tab[2]) |
| int | reg_get_set (oid *myoid, size_t oid_len, unsigned char type, int access, netsnmp_handler_registration *phandler[2]) |
| int | reg_proc (oid *myoid, size_t oid_len, netsnmp_handler_registration **phandler) |
| int | unreg_instance (netsnmp_handler_registration *myreg) |
register.h : registration functions
Definition in file register.h.
| int reg_get_set | ( | oid * | myoid, |
| size_t | oid_len, | ||
| unsigned char | type, | ||
| int | access, | ||
| netsnmp_handler_registration * | phandler_tab[2] | ||
| ) |
Register scalar variable by getter setter. we actually register two thing : the type and the value.
| myoid | oid |
| oid_len | oid length |
| type | type of the value. |
| access | access right. |
| phandler_tab | output parameters, contain the netsnmp handlers registration of the value and type. |
Definition at line 134 of file register.c.
| int reg_proc | ( | oid * | myoid, |
| size_t | oid_len, | ||
| netsnmp_handler_registration ** | phandler | ||
| ) |
Register a procedure
| myoid | oid |
| oid_len | oid length |
| phandler | output parameters, contain the netsnmp handler registration (trigger node). |
Definition at line 195 of file register.c.
| int reg_scal | ( | oid * | myoid, |
| size_t | oid_len, | ||
| void * | value, | ||
| unsigned char | type, | ||
| int | access, | ||
| netsnmp_handler_registration * | phandler_tab[2] | ||
| ) |
Register scalar variable by pointer. we actually register two thing : the type and the value.
| myoid | oid |
| oid_len | oid length |
| value | pointer on the value to register. |
| type | type of the value. |
| access | access right. |
| phandler_tab | output parameters, contain the netsnmp handlers registration of the value and type. |
myoid has enough memory
Definition at line 50 of file register.c.
| int register_ro_string | ( | oid * | myoid, |
| size_t | oid_len, | ||
| char * | string, | ||
| netsnmp_handler_registration ** | phandler | ||
| ) |
Register a read only string
| myoid | oid |
| oid_len | oid length |
| string | string to register. |
| phandler | output parameter, contain the netsnmp handler registration of the string. |
| int unreg_instance | ( | netsnmp_handler_registration * | myreg | ) |
FIXME bug snmp valgrind say Invalid read of size 1 sometime snmpd crash on exit
Definition at line 205 of file register.c.
1.7.3