On Tue, 22 Feb 2005 21:20:42 +0530 Sridhar wrote:
SS> I thought of a solution for the missing coloums problem that I stated
SS> earlier. Before I implement I need your comments on the same. 
SS> 
SS> I did some experiments with the 'netSnmpHostsTable' code that resides in
SS> 'mibgroup/examples/' directory of Net-SNMP installation directory. 

First off, not this this code uses a different style code. This new style
handles sparse tables, while the style used by interfaces.c does not.

SS> Please let me know your feedback on this change.

I'm not sure what you are looking for, but I can say that your changes
effectively emulate a sparse table. And setting NOSUCHINSTANCE is the right
thing to do for a missing column in a sparse table.

SS> Another question: Can anyway I can return a 'SNMP_NOSUCHINSTANCE' code
SS> generated in ucd-snmp style ?

No, I don't think so. The var routine for the old api returns a pointer. Any
non-null value is interpreted as a value for the requested OID.

As I said previously, if you want to handle sparse tables in old api routines,
it would have to be done in the var routine.

-- 
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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

Reply via email to