FWIW I tracked down my problem to a line of code that was added to
snmp_api.h in v5.2.  For some reason the following line adds 8 bytes to
sizeof(struct snmp_session) and screws up the rest of the data following
it.

At line 205 this was added.

    /** My Domain name or dotted IP address, 0 for default */
    char           *localname;

I don't really understand why but it appears that the alignment gets
thrown off.  Anyway, I just comment out that line and everything works
fine with my extended MIB.

Not sure of the implications but it seems like it should be looked at by
someone in the know.


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to