1 |
/* |
/* |
2 |
Copyright (C) 2001, Sergey Poznyakoff. |
Copyright (C) 2001,2003, Sergey Poznyakoff. |
3 |
|
|
4 |
This file is part of GNU Radius SNMP Library. |
This file is part of GNU Radius SNMP Library. |
5 |
|
|
32 |
((node)->subid op s)) |
((node)->subid op s)) |
33 |
|
|
34 |
int |
int |
35 |
mib_lookup(node, oid, len, return_node) |
mib_lookup(struct mib_node_t *node, oid_t oid, |
36 |
struct mib_node_t *node; |
int len, struct mib_node_t **return_node) |
|
oid_t oid; |
|
|
int len; |
|
|
struct mib_node_t **return_node; |
|
37 |
{ |
{ |
38 |
subid_t *p = OIDPTR(oid); |
subid_t *p = OIDPTR(oid); |
39 |
int ind; |
int ind; |
58 |
} |
} |
59 |
|
|
60 |
int |
int |
61 |
mib_insert_node(root_node, oid, len, return_node) |
mib_insert_node(struct mib_node_t **root_node, oid_t oid, |
62 |
struct mib_node_t **root_node; |
int len, struct mib_node_t **return_node) |
|
oid_t oid; |
|
|
int len; |
|
|
struct mib_node_t **return_node; |
|
63 |
{ |
{ |
64 |
int rc; |
int rc; |
65 |
struct mib_node_t *newp; |
struct mib_node_t *newp; |
100 |
} |
} |
101 |
|
|
102 |
int |
int |
103 |
mib_insert(node, oid, return_node) |
mib_insert(struct mib_node_t **node, oid_t oid, |
104 |
struct mib_node_t **node; |
struct mib_node_t **return_node) |
|
oid_t oid; |
|
|
struct mib_node_t **return_node; |
|
105 |
{ |
{ |
106 |
int len = OIDLEN(oid); |
int len = OIDLEN(oid); |
107 |
int i; |
int i; |