46 #define LOG_MODULE "SNMP [mib]" 47 #define LOG_LEVEL LOG_LEVEL_SNMP 58 resource; resource = resource->
next) {
74 resource; resource = resource->
next) {
89 resource; resource = resource->
next) {
95 if(resource == NULL) {
101 #if LOG_LEVEL == LOG_LEVEL_DBG 105 LOG_DBG(
"Table after insert.\n");
107 resource; resource = resource->
next) {
An implementation of the Simple Network Management Protocol (RFC 3411-3418)
snmp_mib_resource_t * snmp_mib_find_next(uint32_t *oid)
Finds the next MIB Resource after this OID.
void list_insert(list_t list, void *previtem, void *newitem)
Insert an item after a specified item on the list.
int snmp_oid_cmp_oid(uint32_t *oid1, uint32_t *oid2)
Compares to oids.
struct snmp_mib_resource_s * next
A pointer to the next element in the linked list.
Linked list manipulation routines.
void * list_head(list_t list)
Get a pointer to the first element of a list.
void snmp_mib_init(void)
Initialize the MIB resources list.
snmp_mib_resource_t * snmp_mib_find(uint32_t *oid)
Finds the MIB Resource for this OID.
void list_add(list_t list, void *item)
Add an item at the end of a list.
void list_init(list_t list)
Initialize a list.
#define LIST(name)
Declare a linked list.
uint32_t * oid
A array that represents the OID.
An implementation of the Simple Network Management Protocol (RFC 3411-3418)
void snmp_mib_add(snmp_mib_resource_t *new_resource)
Adds a resource into the linked list.
void snmp_oid_print(uint32_t *oid)
Prints a oid.