12#if defined(WITH_SNMP) && defined(WITH_RESTCONF)
66typedef struct smioid_node_t_ {
69 struct smioid_node_t_ *
next;
209 boolean *ignored_index);
status_t
global error return code
Definition: status_enum.h:210
obj_oid_t * smioid_concat_object_oid(oid_t *name1, uint32 oid_len1, oid_t *name2, uint32 oid_len2)
Concatenate 2 OIDs into one OID.
Definition: smioid_tree.c:894
boolean smioid_extract_integers(const xmlChar *oid, obj_oid_t *oid_obj)
Split SMI oid string into integers using '.
Definition: smioid_tree.c:213
status_t smioid_tree_init(void)
initialize the tree used for managing the SMI OID and the associated obj_template_t reference
Definition: smioid_tree.c:385
obj_oid_t * smioid_new_scalar_object_oid(void)
Malloc a scalar index OID: '.0'.
Definition: smioid_tree.c:987
status_t smioid_tree_dump(void)
Traverses the SMI OID tree and prints the OID string and info on the obj_template_t instance.
Definition: smioid_tree.c:571
hb_tree * smioid_tree_get(void)
Get the SMI OID tree.
Definition: smioid_tree.c:1021
obj_oid_t * smioid_tree_getnext_oid(obj_oid_t *oid_obj, boolean *found)
Returns the next or closest OID for the specified oid as per the lexicographical order.
Definition: smioid_tree.c:649
boolean smioid_tree_remove(obj_template_t *obj)
Remove a entity from the specified tree.
Definition: smioid_tree.c:493
void smioid_dump_oid_string_obj(obj_template_t *obj)
Logs the given obj_template->oid object as a string.
Definition: smioid_tree.c:866
void smioid_dump_oid_string(const obj_oid_t *oid_obj)
Logs the given oid object as a string.
Definition: smioid_tree.c:824
obj_template_t * smioid_tree_find(obj_oid_t *oid_obj)
Find a object template node from the specified SMI OID string.
Definition: smioid_tree.c:543
void smioid_tree_insert(obj_template_t *obj, obj_oid_t *oid_obj)
Add a list entry to the oid tree.
Definition: smioid_tree.c:431
obj_template_t * smioid_tree_getnext_oid_obj(obj_oid_t *oid_obj, boolean *ignored_index)
Returns the next or closest oid's object template for the specified oid as per the lexicographical or...
Definition: smioid_tree.c:725
void smioid_free_object_oid(obj_oid_t *oid)
Clean and free a malloced get2 control block.
Definition: smioid_tree.c:362
obj_oid_t * smioid_tree_find_oid(obj_template_t *obj)
Find the OID value of the corresponding OBJ template.
Definition: smioid_tree.c:781
void smioid_tree_cleanup(void)
Clean and free the oid tree.
Definition: smioid_tree.c:405
obj_oid_t * smioid_new_object_oid(void)
Malloc and init a new obj_oid_t control block.
Definition: smioid_tree.c:292
obj_oid_t * smioid_dup_object_oid(obj_oid_t *copyfrom)
Duplicate OID.
Definition: smioid_tree.c:947
obj_oid_t * smioid_new_object_oid_ex(oid_t *name, uint32 oid_len, uint32 start_pos)
Malloc and init a new obj_oid_t control block.
Definition: smioid_tree.c:321
unsigned long oid_t
data type used in SNMP
Definition: obj.h:1207
defines the snmp oid value, stored as an array of integers for easier comparision when performing AVL...
Definition: obj.h:1215
One YANG data-def-stmt.
Definition: obj.h:1229
represents a pair of OID and associated object instance
Definition: smioid_tree.h:66
struct smioid_node_t_ * next
SMI get-next OID.
Definition: smioid_tree.h:69
obj_template_t * obj
object for entry
Definition: smioid_tree.h:68
const obj_oid_t * oid
OID for obj.
Definition: smioid_tree.h:67