>>>>> On Fri, 25 Jun 2004 18:17:40 +0530, "Karthikeyan N" <[EMAIL PROTECTED]> said:
Karthikeyan> I have used a structure which contain the table data and Karthikeyan> passing that structure into the method Karthikeyan> header_complex_add_data() method. This method will store Karthikeyan> the data in a linked list, i believe. The header_complex stuff hasn't been touched in a while, because it's, well, complex... However, yes it does store stuff in a linked-list which is lexographically sorted by the mib oid that was inserted. *If* the data was added and set up properly, then it should return the right date in all the cases, however. Karthikeyan> After that I am calling the method header_complex() from Karthikeyan> my var_XXXTable() method ( which is generated one) and Karthikeyan> retrieving the table structure information. Here after Karthikeyan> retrieving the info and print the same, I am getting the Karthikeyan> table elements of the last row. I mean if 3 rows are Karthikeyan> there and tryign to print all the 3 rwos from this place, Karthikeyan> it is returning only the last row. Karthikeyan> From the code walk which I have done in the Karthikeyan> header_complex.c file , I understood that there might be Karthikeyan> some problem in that or the way I am doing is wrong. For Karthikeyan> your info, I have taken the example mteTriggerTable.c Karthikeyan> file implementation from agent/mibgroup/disman directory( Karthikeyan> which also contains two index as like my case) and Karthikeyan> implemented it. I copied the parse_XXX() and the Karthikeyan> mteXXX_add() method for my case and modified accordingly Karthikeyan> my table. there is no other extra modification done Karthikeyan> except the variable name modifications. Please clarify on Karthikeyan> this issue? It sounds like you didn't quite implement everything you needed. Make sure the registration process for the header_complex structure properly defines the indexes. Other than that, I'm not sure exactly what your problem is. Any reason you don't want to use the newer APIs? -- Wes Hardaker Sparta ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
