logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: retrieving a row during SETs: msg#00377

Subject: Re: retrieving a row during SETs
>>>>> On Wed, 28 May 2003 15:36:02 +0200, Stefan Winter <mail@xxxxxxxxxxxxxxxx> 
>>>>> said:

Stefan> Now, the interesting thing is: rows generated with _add_row()
Stefan> show up in
Stefan> (netsnmp_table_data_set)->table->first_row->next... . But in
Stefan> inSegmentTable, first_row _always_ is a null pointer, even
Stefan> though there are entries in this table. They are stored
Stefan> somewhere (because a GET delivers the correct values) but not
Stefan> accessible by following the first_row->next chain.  Can you
Stefan> make something of this?

Err, odd...  really odd...

Glancing at the code, it looks ok.  Run it in a debugger (like gdb)
and set a breakpoint in the netsnmp_table_data_add_row function and
then perform a set to figure out why the table->first_row pointer
isn't getting set (near line 115 at the bottom of the function).

It's possible there are two pointers to the same table definition and
you're looking at a different one than the agent is using?

-- 
Wes Hardaker
Please mail all replies to net-snmp-coders@xxxxxxxxxxxxxxxxxxxxx


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5


<Prev in Thread] Current Thread [Next in Thread>