Data Structures | |
struct | obj_def |
struct | mib_node |
struct | mib_array_node |
struct | mib_ram_array_node |
struct | mib_list_rootnode |
struct | mib_external_node |
Typedefs | |
typedef struct mib_node | mib_scalar_node |
Functions | |
void | noleafs_get_object_def (u8_t ident_len, s32_t *ident, struct obj_def *od) |
void | snmp_oidtoip (s32_t *ident, struct ip_addr *ip) |
void | snmp_iptooid (struct ip_addr *ip, s32_t *ident) |
void | snmp_ifindextonetif (s32_t ifindex, struct netif **netif) |
void | snmp_netiftoifindex (struct netif *netif, s32_t *ifidx) |
s8_t | snmp_mib_node_insert (struct mib_list_rootnode *rn, s32_t objid, struct mib_list_node **insn) |
s8_t | snmp_mib_node_find (struct mib_list_rootnode *rn, s32_t objid, struct mib_list_node **fn) |
struct mib_list_rootnode * | snmp_mib_node_delete (struct mib_list_rootnode *rn, struct mib_list_node *n) |
struct mib_node * | snmp_search_tree (struct mib_node *node, u8_t ident_len, s32_t *ident, struct snmp_name_ptr *np) |
struct mib_node * | snmp_expand_tree (struct mib_node *node, u8_t ident_len, s32_t *ident, struct snmp_obj_id *oidret) |
u8_t | snmp_iso_prefix_tst (u8_t ident_len, s32_t *ident) |
u8_t | snmp_iso_prefix_expand (u8_t ident_len, s32_t *ident, struct snmp_obj_id *oidret) |
Variables | |
struct mib_array_node | internet |
typedef struct mib_node mib_scalar_node |
derived node for scalars .0 index
void noleafs_get_object_def | ( | u8_t | ident_len, | |
s32_t * | ident, | |||
struct obj_def * | od | |||
) |
dummy function pointers for non-leaf MIB nodes from mib2.c
struct mib_node* snmp_expand_tree | ( | struct mib_node * | node, | |
u8_t | ident_len, | |||
s32_t * | ident, | |||
struct snmp_obj_id * | oidret | |||
) | [read] |
Tree expansion.
void snmp_ifindextonetif | ( | s32_t | ifindex, | |
struct netif ** | netif | |||
) |
void snmp_iptooid | ( | struct ip_addr * | ip, | |
s32_t * | ident | |||
) |
Conversion from lwIP ip_addr to oid
ip | points to input struct | |
ident | points to s32_t ident[4] output |
u8_t snmp_iso_prefix_expand | ( | u8_t | ident_len, | |
s32_t * | ident, | |||
struct snmp_obj_id * | oidret | |||
) |
Expands object identifier to the iso.org.dod.internet prefix for use in getnext operation.
ident_len | the length of the supplied object identifier | |
ident | points to the array of sub identifiers | |
oidret | points to returned expanded object identifier |
u8_t snmp_iso_prefix_tst | ( | u8_t | ident_len, | |
s32_t * | ident | |||
) |
Test object identifier for the iso.org.dod.internet prefix.
ident_len | the length of the supplied object identifier | |
ident | points to the array of sub identifiers |
struct mib_list_rootnode* snmp_mib_node_delete | ( | struct mib_list_rootnode * | rn, | |
struct mib_list_node * | n | |||
) | [read] |
Removes node from idx list if it has a single child left.
rn | points to the root node | |
n | points to the node to delete |
s8_t snmp_mib_node_find | ( | struct mib_list_rootnode * | rn, | |
s32_t | objid, | |||
struct mib_list_node ** | fn | |||
) |
Finds node in idx list and returns deletion mark.
rn | points to the root node | |
objid | is the object sub identifier | |
fn | returns pointer to found node |
s8_t snmp_mib_node_insert | ( | struct mib_list_rootnode * | rn, | |
s32_t | objid, | |||
struct mib_list_node ** | insn | |||
) |
Inserts node in idx list in a sorted (ascending order) fashion and allocates the node if needed.
rn | points to the root node | |
objid | is the object sub identifier | |
insn | points to a pointer to the inserted node used for constructing the tree. |
void snmp_netiftoifindex | ( | struct netif * | netif, | |
s32_t * | ifidx | |||
) |
void snmp_oidtoip | ( | s32_t * | ident, | |
struct ip_addr * | ip | |||
) |
Conversion from oid to lwIP ip_addr
ident | points to s32_t ident[4] input | |
ip | points to output struct |
struct mib_node* snmp_search_tree | ( | struct mib_node * | node, | |
u8_t | ident_len, | |||
s32_t * | ident, | |||
struct snmp_name_ptr * | np | |||
) | [read] |
Searches tree for the supplied (scalar?) object identifier.
node | points to the root of the tree ('.internet') | |
ident_len | the length of the supplied object identifier | |
ident | points to the array of sub identifiers | |
np | points to the found object instance (rerurn) |
struct mib_array_node internet [read] |
export MIB tree from mib2.c