79#define OID(name, ...) \
80 static snmp_oid_t name = { \
81 .data = { __VA_ARGS__ }, \
82 .length = (sizeof((uint32_t[]){ __VA_ARGS__ }) / sizeof(uint32_t)) \
92#define MIB_RESOURCE(name, handler, ...) \
93 snmp_mib_resource_t name = { \
96 .data = { __VA_ARGS__ }, \
97 .length = (sizeof((uint32_t[]){ __VA_ARGS__ }) / sizeof(uint32_t)) \
void snmp_api_set_string(snmp_varbind_t *varbind, snmp_oid_t *oid, char *string)
Function to set a varbind with a string.
void snmp_api_set_time_ticks(snmp_varbind_t *varbind, snmp_oid_t *oid, uint32_t integer)
Function to set a varbind with a time tick.
void snmp_api_add_resource(snmp_mib_resource_t *new_resource)
Function to add a new resource.
void snmp_api_set_oid(snmp_varbind_t *varbind, snmp_oid_t *oid, snmp_oid_t *ret_oid)
Function to set a varbind with a oid.
void(* snmp_mib_resource_handler_t)(snmp_varbind_t *varbind, snmp_oid_t *oid)
The MIB resource handler typedef.
SNMP Implementation of the MIB.
SNMP Implementation of the process.
snmp_oid_t oid
A OID struct.