66#define OID(name, ...) \
67 static snmp_oid_t name = { \
68 .data = { __VA_ARGS__ }, \
69 .length = (sizeof((uint32_t[]){ __VA_ARGS__ }) / sizeof(uint32_t)) \
79#define MIB_RESOURCE(name, handler, ...) \
80 snmp_mib_resource_t name = { \
83 .data = { __VA_ARGS__ }, \
84 .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.
SNMP Implementation of the MIB.
SNMP Implementation of the process.