Hello, I'm working on a patch to allow modifying the update frequency value for network interface traffic data on IF-MIB, as by now it is established from IFTABLE_CACHE_TIMEOUT constant.
I've registered a config handler using 'snmpd_register_config_handler' to parse a new 'ifTableCacheTimeout' token, but the problem I have found is that the handler for that token is executed _after_ the netsnmp_cache structure for the ifTable data has been created, so I have to 'reset' the timeout of the netsnmp_cache structure by modifying the 'timeout' field and calling 'netsnmp_cache_timer_stop' and 'netsnmp_cache_timer_start'.... Do you think that is the better approach to accomplish this task or is there any other way to obtain the configuration value _before_ the netsnmp_cache has been created? Thank you very much in advance, Daniel ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
