On 14/08/07, Torben Surmer <[EMAIL PROTECTED]> wrote:

> I changed the netSnmpIETFWGTable ...as follows

>     INDEX   { IMPLIED nsIETFWGName }

>  After creating the c-file   - mib2c -c mib2c.create-dataset.conf
> netSnmpIETFWGTable and compiling the subagent

A quick test seems to imply that the mib2c templates don't know
about IMPLIED indexes.  That's clearly a bug, which needs to be fixed.

Try tweaking the generated code file as follows   (untested):

*** netSnmpIETFWGTable.c.orig   2007-08-14 10:17:59.831483000 +0100
--- netSnmpIETFWGTable.c        2007-08-14 10:19:18.298892000 +0100
***************
*** 35,37 ****
                  "adding indexes to table netSnmpIETFWGTable\n"));
!     netsnmp_table_set_add_indexes(table_set, ASN_OCTET_STR,     /*
index: nsIETFWGName */
                                    0);
--- 35,37 ----
                  "adding indexes to table netSnmpIETFWGTable\n"));
!     netsnmp_table_set_add_indexes(table_set,
ASN_PRIV_IMPLIED_OCTET_STR,     /* index: nsIETFWGName */
                                    0);
***************
*** 42,44 ****
                                              COLUMN_NSIETFWGNAME,
!                                             ASN_OCTET_STR, 0, NULL, 0,
                                              COLUMN_NSIETFWGCHAIR1,
--- 42,44 ----
                                              COLUMN_NSIETFWGNAME,
!
ASN_PRIV_IMPLIED_OCTET_STR, 0, NULL, 0,
                                              COLUMN_NSIETFWGCHAIR1,


Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.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