mfd (array like) table implementation step 1

"Rob Walter" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <018301c7926a$66763500$d700a8c0@ASSETTWALTER>
Hi.

 

I am having difficulty interpreting the available documentation

on how to complete mib2c "mib2c.mfd.conf" generated files. So

I have decided to proceed by asking a series of questions to

"step-wise" gain the essential understanding.

 

The table in question can be thought of as a simple array

of integers. An snmptranslate of the subtree would look like:

 

  |

  +--myTable(1)

     |

     +--myEntry(1)

        |  Index: myIndex

        |

        +-- -R--  Integer32 myIndex(1)

        |         Range: 1..256

        +-- -RW-  Integer32 myValue(2)

 

I intend for the physical storage of the table to reside in

my own code, a subagent.

 

>From the generated file myTable.h, I conclude that a row of this

table is of type "myTable_ref_rowreq_ctx". I further conclude that

my table can be instantiated, in my code, as a global array:

 

myTable_ref_rowreq_ctx  myTable_array[256];

 

I stop at this point and ask, is there any problem with the

preceding "line of thought"?

 

Cheers.

Robert J. (Rob) Walter

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.