Re: mib2c.iterate.conf generates errors
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAKoMtGbBBCXPuxt+XYATYwO9k6=DDcaNOssmdy_MUL0y3pSq0A@mail.gmail.com> |
On 26 January 2012 17:00, Simon Chamlian <[email protected]> wrote: > The C file generated by mib2c.iterate.conf gives several errors when > compiled (option 1). What is the MIB file that you are working with? What changed have you made to the generated code? Remember that the code generated is a *starting* point for your MIB implementation. It doesn't pretend to be complete automatically. > 2) The structure generated has undefined entries and is duplicated twice: > > /* Typical data structure for a row entry */ > struct mpbcRMHAlarmTable_entry { > /* Index values */ > long mpbcRMHAlarmIndex; > char mpbcRMHAlarmNEID[NNN]; // <------ NNN is undefined Yes - you need to insert the appropriate size based on the data that you will be working with. > /* Column values */ > long mpbcRMHAlarmIndex; // <------- duplicated What is the MIB definition of the mpbcRMHAlarmIndex object? My best guess is that the object has been defined as 'read-only' rather than 'not-accessible', so it's being picked up by the code dealing with accessible columns, as well as the code concerned with indexes. Dave ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users