Functions |
|
| netsnmp_oid_stash_node * | netsnmp_oid_stash_create_sized_node (size_t mysize) |
| Create an netsnmp_oid_stash node. |
|
| NETSNMP_INLINE netsnmp_oid_stash_node * | netsnmp_oid_stash_create_node (void) |
| Creates a netsnmp_oid_stash_node. |
|
| int | netsnmp_oid_stash_add_data (netsnmp_oid_stash_node **root, oid *lookup, size_t lookup_len, void *mydata) |
| adds data to the stash at a given oid. |
|
| netsnmp_oid_stash_node * | netsnmp_oid_stash_get_node (netsnmp_oid_stash_node *root, oid *lookup, size_t lookup_len) |
| returns a node associated with a given OID. |
|
| netsnmp_oid_stash_node * | netsnmp_oid_stash_getnext_node (netsnmp_oid_stash_node *root, oid *lookup, size_t lookup_len) |
| returns the next node associated with a given OID. |
|
| void * | netsnmp_oid_stash_get_data (netsnmp_oid_stash_node *root, oid *lookup, size_t lookup_len) |
| returns a data pointer associated with a given OID. |
|
| int | netsnmp_oid_stash_store_all (int majorID, int minorID, void *serverarg, void *clientarg) |
| a wrapper around netsnmp_oid_stash_store for use with a snmp_alarm. |
|
| void | netsnmp_oid_stash_store (netsnmp_oid_stash_node *root, const char *tokenname, NetSNMPStashDump *dumpfn, oid *curoid, size_t curoid_len) |
| stores data in a starsh tree to peristent storage. |
|
| void | oid_stash_dump (netsnmp_oid_stash_node *root, char *prefix) |
| For debugging: dump the netsnmp_oid_stash tree to stdout. |
|
| void | netsnmp_oid_stash_free (netsnmp_oid_stash_node **root, NetSNMPStashFreeNode *freefn) |
| Frees the contents of a netsnmp_oid_stash tree. |
|
| void | netsnmp_oid_stash_no_free (void *bogus) |
It stores a bunch of data pointers within a memory tree that allows fairly efficient lookups with a heavily populated tree.
|
||||||||||||||||||||
|
adds data to the stash at a given oid.
Definition at line 83 of file oid_stash.c. References netsnmp_oid_stash_create_node(). |
|
|
Creates a netsnmp_oid_stash_node. Assumes you want the default OID_STASH_CHILDREN_SIZE hash size for the node.
Definition at line 66 of file oid_stash.c. References netsnmp_oid_stash_create_sized_node(). Referenced by netsnmp_oid_stash_add_data(). |
|
|
Create an netsnmp_oid_stash node.
Definition at line 46 of file oid_stash.c. References SNMP_MALLOC_TYPEDEF. Referenced by netsnmp_oid_stash_create_node(). |
|
||||||||||||
|
Frees the contents of a netsnmp_oid_stash tree.
Definition at line 398 of file oid_stash.c. |
|
||||||||||||||||
|
returns a data pointer associated with a given OID. This is equivelent to netsnmp_oid_stash_get_node, but returns only the data not the entire node.
Definition at line 282 of file oid_stash.c. References netsnmp_oid_stash_get_node(). |
|
||||||||||||||||
|
returns a node associated with a given OID.
Definition at line 154 of file oid_stash.c. Referenced by netsnmp_oid_stash_get_data(). |
|
||||||||||||||||
|
returns the next node associated with a given OID. INCOMPLETE. This is equivelent to a GETNEXT operation. Definition at line 191 of file oid_stash.c. |
|
||||||||||||||||||||||||
|
stores data in a starsh tree to peristent storage. This function can be called to save all data in a stash tree to Net-SNMP's percent storage. Make sure you register a parsing function with the read_config system to re-incorperate your saved data into future trees.
Definition at line 331 of file oid_stash.c. References read_config_store(). Referenced by netsnmp_oid_stash_store_all(). |
|
||||||||||||||||||||
|
a wrapper around netsnmp_oid_stash_store for use with a snmp_alarm. when calling snmp_alarm, you can list this as a callback. The clientarg should be a pointer to a netsnmp_oid_stash_save_info pointer. It can also be called directly, of course. The last argument (clientarg) is the only one that is used. The rest are ignored by the function.
Definition at line 301 of file oid_stash.c. References netsnmp_oid_stash_store(). |
|
||||||||||||
|
For debugging: dump the netsnmp_oid_stash tree to stdout.
Definition at line 371 of file oid_stash.c. |
1.3.9.1
Last modified: Thursday, 01-Mar-2007 16:20:13 PST
For questions regarding web content and site functionality, please write to the net-snmp-users mail list.