Thanks for the quick patch.
The right code looks like
 snmp_set_var_typed_value( request->requestvb, ASN_COUNTER64,
                                            (u_char 
*)&(table_entry->sentMsgCount), sizeof(table_entry->sentMsgCount));
Some compile expects type to be  (u_char *).

I have used "mib2c.iterate.conf" as the template.







________________________________
From: Magnus Fromreide <[email protected]>
To: sujata patra <[email protected]>
Cc: net-snmp-coders <[email protected]>
Sent: Tue, January 25, 2011 12:00:17 PM
Subject: Re: code generation is wrong for Counter64 type

Does this patch solve the problem for you?

/MF



      
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to