On Thu, 21 Jul 2005 08:10:38 -0500 [EMAIL PROTECTED] wrote: EYC> It's easy to reproduce the problem in two steps:
For you, maybe, not for me. I should have asked before, what release are you running? EYC> 1. Generate mib2c template for etherStatsTable using mib2c.mfd.conf , Did you accept all the defaults? EYC> 2. The only change is to add the following lines in EYC> etherStatsTable_cache_load( ) oid etherStatsDataSource[] = EYC> {1,3,6,1,2,1,2,2,1,1,1}; rowreq_ctx->data.etherStatsDataSource_len = 11; EYC> memcpy(rowreq_ctx->data.etherStatsDataSource, etherStatsDataSource, EYC> rowreq_ctx->data.etherStatsDataSource_len * EYC> sizeof(rowreq_ctx->data.etherStatsDataSource[0])); This code is perfectly fine, and worked in the code I generated using 5.2.1 CVS. Something else must be going on with memory access... -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders