On 17 May 2010 11:48, Rathod, Nitin <nitin_rat...@bmc.com> wrote:
>                 I’m using snmptranslate utility for converting MIB files
> into textual description specially for TRAPS. But using the snmpTranslate
> utility netsnmp version 5.5 it is unable to convert TRAP-TYPE data types. It
> is successfully able to convert the NOTIFICATION-TYPE.
>
> Instead for TRAP-TYPE it is converting  it to OBJECT-TYPE.

Try the attached patch.

Dave
Index: snmplib/parse.c
===================================================================
--- snmplib/parse.c	(revision 18768)
+++ snmplib/parse.c	(working copy)
@@ -2971,6 +2971,7 @@
     strcpy(np->parent, np->next->parent);
     strcat(np->parent, "#");
     np->next->label = strdup(np->parent);
+    np->type = TRAPTYPE;
     return np;
 }
 
------------------------------------------------------------------------------

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to