This is a discussion on Re: implementation of table row removal within the SNMP Coders forums, part of the Networking and Network Related category; On Tue, 2005-10-18 at 16:29 +0100, Paul Davies wrote: > > I am implementing tables using table_data....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Tue, 2005-10-18 at 16:29 +0100, Paul Davies wrote:
> > I am implementing tables using table_data.conf. I do need to be able to > > add and delete rows external to the incoming SNMP requests. > > > > The table_removeEntry function requires netsnmp_table_data* and > > netsnmp_table_row*. My issue is how can I get a handle on the > > netsnmp_table_row* if I am not invoking this function via the > > table_handler method. There is an API routine: netsnmp_table_row * netsnmp_table_data_get( netsnmp_table_data *table, netsnmp_variable_list * indexes) which will return the row for a given set of index values (and a similar one based on encoded OID instance values). > > I have started considering the netsnmp_table_data_get_from_oid() > > and netsnmp_table_data_get() helper functions But you've already found them! > > but not sure if I am going down the wrong road. > > any thoughts would be appreciated, is there a better way? No - that's the correct approach for your requirements. I'm currently in the process of fleshing out a generic table API framework, and applying it to the main table-related helpers. This will include a set of standard API calls for constructing and working with tables using any of these helpers. That should hopefully be available with the 5.3 release. But you're fortunate that the particular routines you need are already in place for the table_data helper. Dave ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |