Hi all, We used snmpwalk to get some network interface statistics, e.g. ifInOctets. But, after we changed the system time from 4:00 pm to 3:00 pm, the output seemed never updating for a long time. Having a glance at the source code, i set the IFTABLE_CACHE_TIMEOUT form 30 to 1, and changed the cache->enabled to 0, yet it seemed neither of them made sense. Did i miss something? In addition, i think using *gettimeofday* to determine whether a timeout occurs is a bit problematic. Actually, the system time may be changed for some reasons, and the delta could be negative. If the system time was changed to long before, the cache would stay unflushed for long. We'd better to use a monotonic clock, like clock_gettime(CLOCK_MONOTONIC,...), right?
-- Best regards, slhhust ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users