Hi,

I am facing a problem in one of our mib implementation during run-time. I have a table 
having two different indexes such as one string ( mac address index) and another 
simple integer index. If I generate the code with ucd-snmp style and implemented my 
data, the agent is always returning the last row in the table.

Here the problem in more detail manner :

I have used a structure which contain the table data and passing that structure into 
the method 
header_complex_add_data() method. This method will store the data in a linked list, i 
believe.

After that I am calling the method header_complex() from my var_XXXTable() method ( 
which is generated one) and retrieving the table structure information. Here after 
retrieving the info and print the same, I am getting the table elements of the last 
row. I mean if 3 rows are there and tryign to print all the 3 rwos from this place, it 
is returning only the last row. 

>From the code walk which I have done in the header_complex.c file , I understood that 
>there might be some problem in that or the way I am doing is wrong. For your info, I 
>have taken the example mteTriggerTable.c file implementation from 
>agent/mibgroup/disman directory( which also contains two index as like my case) and 
>implemented it. I copied the parse_XXX() and the mteXXX_add() method for my case and 
>modified accordingly my table. there is no other extra modification done except the 
>variable name modifications. Please clarify on this issue?




expecting ur early response.

Thanks & Regards,
Karthik
-- 
______________________________________________
IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com 
Check out our value-added Premium features, such as an extra 20MB for mail storage, 
POP3, e-mail forwarding, and ads-free mailboxes!

Powered by Outblaze


-------------------------------------------------------
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

Reply via email to