about net-snmp 64bits data

"Alexander King" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
------------------ Original ------------------

From: "Dave Shield"<[email protected]>;

Date: Wed, Jan 27, 2010 05:23 PM

To: "Alexander King"<[email protected]>; 

Cc: "net-snmp-users"<[email protected]>; 

Subject: Re: when snmpwalk query my private trap OID the snmpd routine auto termination

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.

>>>>I will test this again.

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.

>>>> I did this:

prefix          = /usr/local  \
  --enable-shared \
  --with-default-snmp-version=2 \
  --with-mib-modules="uit"  \
  --enable-mfd-rewrites
and use uint64_t in my c source code,is it right?

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

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.