Contiki-NG
Data Structures | Typedefs | Functions

This group contains the MIB implementation. More...

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. More...
 
typedef struct snmp_mib_resource_s snmp_mib_resource_t
 The MIB Resource struct.
 

Functions

snmp_mib_resource_tsnmp_mib_find (snmp_oid_t *oid)
 Finds the MIB Resource for this OID. More...
 
snmp_mib_resource_tsnmp_mib_find_next (snmp_oid_t *oid)
 Finds the next MIB Resource after this OID. More...
 
void snmp_mib_add (snmp_mib_resource_t *resource)
 Adds a resource into the linked list. More...
 
void snmp_mib_init (void)
 Initialize the MIB resources list.
 

Detailed Description

This group contains the MIB implementation.

Typedef Documentation

◆ snmp_mib_resource_handler_t

typedef void(* snmp_mib_resource_handler_t) (snmp_varbind_t *varbind, snmp_oid_t *oid)

The MIB resource handler typedef.

Parameters
varbindThe varbind that is being changed
oidThe oid from the resource

Definition at line 70 of file snmp-mib.h.

Function Documentation

◆ snmp_mib_add()

void snmp_mib_add ( snmp_mib_resource_t resource)

Adds a resource into the linked list.

Parameters
resourceThe resource

Definition at line 123 of file snmp-mib.c.

Referenced by snmp_api_add_resource().

◆ snmp_mib_find()

snmp_mib_resource_t* snmp_mib_find ( snmp_oid_t oid)

Finds the MIB Resource for this OID.

Parameters
oidThe OID
Returns
In case of success a pointer to the resouce or NULL in case of fail

Definition at line 89 of file snmp-mib.c.

◆ snmp_mib_find_next()

snmp_mib_resource_t* snmp_mib_find_next ( snmp_oid_t oid)

Finds the next MIB Resource after this OID.

Parameters
oidThe OID
Returns
In case of success a pointer to the resouce or NULL in case of fail

Definition at line 106 of file snmp-mib.c.