2010/1/27 Alexander King <[email protected]>:
> I checked the handler function on systemJBODNumber and systemStatus,
> objectively speaking,I hadnot found something apparently wrong contrast
> to the other object handler function.I will check it more carefully again 
> later.

Remember that you need to pass a pointer *to* the value that you want to
return.   You were actually returning this value *AS* a pointer variable.

So when the agent dereferenced this pointer later (to retrieve the actual
value), this triggered the crash.

You also need to look again at how Counter64 values are handled in the
Net-SNMP agent.   Hint:  It's not a simple "long" or "long long" variable.

Dave

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
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

Reply via email to