On Thu,  6 Dec 2007 17:05:22 +0100 [EMAIL PROTECTED] wrote:
AI> I have a problem in a table with the following attributes:
AI> ifIndex: foreign key (ifTable)
AI> MacAddress: primary key.
AI> other attributes...
AI> I have generated the source code with mib2c command in MFD mode.
AI> I have tryed to put the table data in a two dimensional array in the table 
module.

I'm not sure what you mean by 'a two dimensional array in the table module.'

AI> If the table is, instead, this:
AI> 
AI> ifIndex | MacAddress | Attr1 | ... other attributes ...
AI>  1          000000      1      ...........
AI>  1          000001      2      ...........
AI>  2          000000      3      ...........
AI>  2          000001      4      ...........
AI>  3          000000      5      ...........
AI>  3          000001      6      ...........
AI> 
AI> and I use the walk command, I get a never ending cycle with the following 
data:
AI> 
AI> ifIndex | MacAddress | Attr1 | ... other attributes ...
AI>  1          000000      1
AI>  1          000001      2
AI>  1          000001      2
AI>  1          000001      2
AI>  1          000001      2

The order is based on how the container used by the MFD table is generated.
Either you aren't setting the indexes right, or you are inserting duplicate
entries into the container.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to