Data Structures | |
struct | nse |
Functions | |
void | snmp_ifindextonetif (s32_t ifindex, struct netif **netif) |
void | snmp_netiftoifindex (struct netif *netif, s32_t *ifidx) |
void | snmp_oidtoip (s32_t *ident, struct ip_addr *ip) |
void | snmp_iptooid (struct ip_addr *ip, s32_t *ident) |
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 | |
const s32_t | prefix [4] = {1, 3, 6, 1} |
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) |
const s32_t prefix[4] = {1, 3, 6, 1} |
.iso.org.dod.internet address prefix,