Hi
I am interesting in to use the NotificationLogMib, but it is still not
correct filled for snmpV1 taps.
According to the RFC, see http://rfc-ref.org/RFC-TEXTS/3584/chapter3.html#sub1
it should be like my diff
Please fix it and integrate my tests scripts to check this issue.
see
https://sourceforge.net/tracker/?func=detail&atid=312694&aid=3096725&group_id=12694
With regards,
Claus Klein
Index: agent/agent_trap.c
===================================================================
--- agent/agent_trap.c (Revision 19660)
+++ agent/agent_trap.c (Arbeitskopie)
@@ -80,7 +80,8 @@
#define SNMPV2_TRAPS_PREFIX SNMP_OID_SNMPMODULES,1,1,5
const oid trap_prefix[] = { SNMPV2_TRAPS_PREFIX };
-const oid cold_start_oid[] = { SNMPV2_TRAPS_PREFIX, 1 }; /*
SNMPv2-MIB */
+const oid cold_start_oid[] = { SNMPV2_TRAPS_PREFIX, 1 }; /*
SNMPv2-MIB::coldStart */
+const size_t cold_start_oid_len = OID_LENGTH(cold_start_oid);
#define SNMPV2_TRAP_OBJS_PREFIX SNMP_OID_SNMPMODULES,1,1,4
const oid snmptrap_oid[] = { SNMPV2_TRAP_OBJS_PREFIX, 1, 0 };
@@ -486,8 +487,8 @@
enterprise[enterprise_len++] = template_v1pdu->specific_type;
} else {
memcpy(enterprise, cold_start_oid, sizeof(cold_start_oid));
- enterprise[9] = template_v1pdu->trap_type+1;
- enterprise_len = sizeof(cold_start_oid)/sizeof(oid);
+ enterprise[cold_start_oid_len - 1] = template_v1pdu-
>trap_type + 1;
+ enterprise_len = cold_start_oid_len;
}
var = NULL;
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders