Contiki-NG
|
Data Structures | |
struct | snmp_mib_resource_s |
The MIB Resource struct. More... | |
Typedefs | |
typedef void(* | snmp_mib_resource_handler_t) (snmp_varbind_t *varbind, snmp_oid_t *oid) |
The MIB resource handler typedef. | |
typedef struct snmp_mib_resource_s | snmp_mib_resource_t |
The MIB Resource struct. | |
Functions | |
snmp_mib_resource_t * | snmp_mib_find (snmp_oid_t *oid) |
Finds the MIB Resource for this OID. | |
snmp_mib_resource_t * | snmp_mib_find_next (snmp_oid_t *oid) |
Finds the next MIB Resource after this OID. | |
void | snmp_mib_add (snmp_mib_resource_t *resource) |
Adds a resource into the linked list. | |
void | snmp_mib_init (void) |
Initialize the MIB resources list. | |
This group contains the MIB implementation
typedef void(* snmp_mib_resource_handler_t) (snmp_varbind_t *varbind, snmp_oid_t *oid) |
The MIB resource handler typedef.
varbind | The varbind that is being changed |
oid | The oid from the resource |
Definition at line 70 of file snmp-mib.h.
void snmp_mib_add | ( | snmp_mib_resource_t * | resource | ) |
Adds a resource into the linked list.
resource | The resource |
Definition at line 123 of file snmp-mib.c.
References snmp_oid_s::data, list_add(), list_head(), list_insert(), snmp_mib_resource_s::next, snmp_mib_resource_s::oid, and snmp_mib_cmp_oid().
Referenced by snmp_api_add_resource().
snmp_mib_resource_t * snmp_mib_find | ( | snmp_oid_t * | oid | ) |
Finds the MIB Resource for this OID.
oid | The OID |
Definition at line 89 of file snmp-mib.c.
References list_head(), snmp_mib_resource_s::next, snmp_mib_resource_s::oid, and snmp_mib_cmp_oid().
snmp_mib_resource_t * snmp_mib_find_next | ( | snmp_oid_t * | oid | ) |
Finds the next MIB Resource after this OID.
oid | The OID |
Definition at line 106 of file snmp-mib.c.
References list_head(), snmp_mib_resource_s::next, snmp_mib_resource_s::oid, and snmp_mib_cmp_oid().