On Thu, 7 Jun 2007 12:05:15 -0700 (PDT) Need wrote:
NH> Ugh ... I just noticed something I think I am doing wrong:   
NH> 
NH> The Table2 data_context structure came configured with a "ProtectionStatus" 
field defined in it (since this is in my MIB).   Knowing that Table2 is an 
extension of Table1 (and based on our past discussions on how to implement this 
type of table), I added the "ProtectionStatus" field defintion into Table1 
data_context structure as well.  Also, Table2 has been enhanced to use the same 
cache as defined by Table1.
NH> 
NH> Now, when I "snmpwalk" through Table2, then the "Table2_row_prep()" routine 
is called and is providing a row_context structure as input.  In this routine, 
I found that I am updating the "ProtectionStatus" field defined in the Table2 
data_context structure instead of updating the one defined in the Table1 
data_context structure.  I think this is a mistake.  I believe I want to update 
the "ProtectionStatus" field in Table1 data_context instead .... is this 
correct?

Yep. Check out the ifXTable headers.. you'll see that it is using ifTable
structures.

NH> If so, then how do I access the Table1 table so I can update the row data 
appropriately?  I know the "rowreq_ctx->tbl_idx" value provided in the 
Table2_row_prep() routine tells me the row I am dealing with, but how do I get 
to Table1 to change the field data there?

The data structure of the rowreq_ctx is the data structure from table1.

NH> Actually, should the Table2 data_context structure include any fields at 
all?  I would not think so, since all these fields have been added to Table1 
data_context already.

Nope. Try the sharing trick form ifXTable....

-------------------------------------------------------------------------
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-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to