On Fri, 10 Jul 2015 07:14:47 +0100 Tim wrote:
TC> I've no problem giving it a shout.
TC> 
TC> If you could give me some guideance that would really help.

Ok, first the config token to specify the timeout. Take a look
at  ./agent/mibgroup/mibII/vacm_conf.c and search on
vacm_parse_view. You should see code to register a config token
("view"), and to parse the view line (including parsing an OID,
which will be the OID of the table). Register a new token
("myTableCacheTimeout") int your table's init routine, with a new
parse routine that parses an OID and an integer timeout.

Once you have an OID, netsnmp_cache_find_by_oid should find the
cache. Then set cache_entry->timeout to the timeout value you
parsed, and you should be all set.

Hopefully that will get you started. Ask questions when you get
stuck.

Robert

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to