7#if LWIP_SNMP && LWIP_SNMP_V3
21const struct snmp_obj_id usmNoAuthProtocol = { 10, { 1, 3, 6, 1, 6, 3, 10, 1, 1, 1 } };
22const struct snmp_obj_id usmHMACMD5AuthProtocol = { 10, { 1, 3, 6, 1, 6, 3, 10, 1, 1, 2 } };
23const struct snmp_obj_id usmHMACSHAAuthProtocol = { 10, { 1, 3, 6, 1, 6, 3, 10, 1, 1, 3 } };
30const struct snmp_obj_id usmNoPrivProtocol = { 10, { 1, 3, 6, 1, 6, 3, 10, 1, 2, 1 } };
31const struct snmp_obj_id usmDESPrivProtocol = { 10, { 1, 3, 6, 1, 6, 3, 10, 1, 2, 2 } };
33const struct snmp_obj_id usmAESPrivProtocol = { 10, { 1, 3, 6, 1, 6, 3, 10, 1, 2, 4 } };
40#define SNMP_FRAMEWORKMIB_SNMPENGINEMAXMESSAGESIZE 1500
43static s16_t snmpengine_scalars_get_value(
const struct snmp_scalar_array_node_def *
node,
void *
value)
50 snmpv3_get_engine_id(&engineid, &engineid_len);
54 *(
s32_t *)
value = snmpv3_get_engine_boots_internal();
57 *(
s32_t *)
value = snmpv3_get_engine_time_internal();
60 *(
s32_t *)
value = SNMP_FRAMEWORKMIB_SNMPENGINEMAXMESSAGESIZE;
68static const struct snmp_scalar_array_node_def snmpengine_scalars_nodes[] = {
69 {1, SNMP_ASN1_TYPE_OCTET_STRING, SNMP_NODE_INSTANCE_READ_ONLY},
70 {2, SNMP_ASN1_TYPE_INTEGER, SNMP_NODE_INSTANCE_READ_ONLY},
71 {3, SNMP_ASN1_TYPE_INTEGER, SNMP_NODE_INSTANCE_READ_ONLY},
72 {4, SNMP_ASN1_TYPE_INTEGER, SNMP_NODE_INSTANCE_READ_ONLY},
74static const struct snmp_scalar_array_node snmpengine_scalars = SNMP_SCALAR_CREATE_ARRAY_NODE(1, snmpengine_scalars_nodes, snmpengine_scalars_get_value,
NULL,
NULL);
76static const struct snmp_node *
const snmpframeworkmibobjects_subnodes[] = {
77 &snmpengine_scalars.node.node
79static const struct snmp_tree_node snmpframeworkmibobjects_treenode = SNMP_CREATE_TREE_NODE(2, snmpframeworkmibobjects_subnodes);
82static const struct snmp_node *
const snmpframeworkmib_subnodes[] = {
83 &snmpframeworkmibobjects_treenode.node
85static const struct snmp_tree_node snmpframeworkmib_root = SNMP_CREATE_TREE_NODE(10, snmpframeworkmib_subnodes);
86static const u32_t snmpframeworkmib_base_oid[] = {1, 3, 6, 1, 6, 3, 10};
87const struct snmp_mib snmpframeworkmib = {snmpframeworkmib_base_oid,
LWIP_ARRAYSIZE(snmpframeworkmib_base_oid), &snmpframeworkmib_root.node};
#define LWIP_ARRAYSIZE(x)
#define LWIP_DEBUGF(debug, message)
#define MEMCPY(DST, SRC, BYTES)