Proper GETNEXT behavior

2009-01-21 Thread Adrian Overbury
So this is a point I've never been clear on: Say I've got a table, and I've just gotten a GETNEXT request for the OID of one of the column heads. Should I return the OID for the next column head or the OID of the first field of that column? On a similar note, I've been looking at pass and pass

Re: Modifying IFTABLE_CACHE_TIMEOUT via snmpd.conf (WIP)

2009-01-21 Thread Daniel Montero Motilla
2009/1/21 Dave Shield : > The best way to do this would be to tie it in with the (existing) > NET-SNMP-AGENT-MIB::nsCacheTable.This includes a column > object nsCacheTimeout which is intended to control exactly this > behaviour. This MIB is already linked in with the cache handler > helper, s

Re: Modifying IFTABLE_CACHE_TIMEOUT via snmpd.conf (WIP)

2009-01-21 Thread Dave Shield
2009/1/21 Daniel Montero Motilla : > 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. > Do you think that is the better approach to accomplish this task or is > th

Modifying IFTABLE_CACHE_TIMEOUT via snmpd.conf (WIP)

2009-01-21 Thread Daniel Montero Motilla
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' to

Re: K&R - how relevant is it?

2009-01-21 Thread Dave Shield
2009/1/20 Wes Hardaker : >> On Mon, 19 Jan 2009 23:58:41 +0100, Magnus Fromreide >> said: > > MF> I just wanted to know if it would be permissible to remove the varargs.h > MF> support from the code base? > > Well, I've actually been wondering about that section of code as well. > It stem

Re: scalar_group and getnext processing

2009-01-21 Thread Dave Shield
2009/1/21 satyam : > what is the best way to handle group of similar scalars ? > I was looking at scalar_group and it seems to meet requirement perfectly > > Would it take care of getnext processing and getbulk processing ? Yes Dave -