On Wed, 2009-09-09 at 10:39 -0400, Samer Vazdekis wrote: > > Hi there, > I'm running net-snmp version 5.2.1.2. I'm coming across a problem in > snmp_select_info(). This part of code didn't change when I compared it > to version 5.4.2. Basically, this is using gettimeofday() to figure > out the timeouts. When I reset system date and time, specially > backwards, the select fails and keeps on failing until I set back the > date and time. I'm considering a solution that changes the request's > time, expire, and timeout values (in netsnmp_request_list) if current > time is found to be less than the time the request was created.
> Pleae, let me know your opinion. Or maybe if there is already a fix > for this. This is a hard problem. The problem is that there are two concepts - wait for X time units and wait until time T - but only one interface to handle it. Check out the thread "Patch for delaying of tasks attached to snmp_alarm_register" from september-october 2005 for a lot more description. http://thread.gmane.org/gmane.network.net-snmp.devel/10570/focus=10634 There is also an earlier stab on the problem in https://sourceforge.net/tracker/?func=detail&atid=312694&aid=2505488&group_id=12694 /MF I think I will have to do a FAQ of this... ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
