On Thu, 2005-05-26 at 00:25, Vance Shipley wrote:
> When a SET
> arrives for an existing row I can extract my row data using:
>
> netsnmp_extract_table_row_data(request);
>
> I take it though that this will return NULL when the row doesn't
> exist.
Correct.
> Where do I get the row number?
What do you mean by "row number"?
If you mean the index value(s) of the row, try:
netsnmp_table_request_info *ti =
netsnmp_extract_table_info( request );
The field 'ti->indexes' holds a varbind list containing
the index values from the incoming request.
So if the table was indexed by a single integer value,
you could retrieve this using
long intIndex = *ti->indexes->val.integer;
(but don't forget to check for null pointers first!)
Dave
-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders