mfd and row creation

Alon Marx <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization iportent
Message-ID <[email protected]>
Hi all, 

I used mib2c with the mfd config file to create code for my table. The
table can be read and written and all is well, up to the point that a
new row has to be created..

I found out that in the defaults the value of m2c_table_row_creation was
set to 0 and changed that to 1, and recreated the code. Now I have a
missing function _mfd_ipsPeerTable_rowreq_from_index (compilation output
is listed below).

1. mib2c does not query the user about row creation. Does it always
assume that this is not required?
2. What do I have to do so that mib2c creates the necessary code for row
creation? 

I have listed below the table default values in case this helps identify
the problem.

Thanks,
Alon


Compilation output:
ipsPeerTable_interface.c: In function ‘_mfd_ipsPeerTable_object_lookup’:
ipsPeerTable_interface.c:716: warning: implicit declaration of function
‘_mfd_ipsPeerTable_rowreq_from_index’
...
ipsPeerTable_interface.o(.text+0x3e6): In function
`_mfd_ipsPeerTable_object_lookup':
/home/alon/workspace/snmp/ipsPeerTable/ipsPeerTable_interface.c:715:
undefined reference to `_mfd_ipsPeerTable_rowreq_from_index'
collect2: ld returned 1 exit status


Table default settings:
@eval $m2c_context_reg = "netsnmp_data_list"@
@eval $m2c_data_allocate = 0@
@eval $m2c_data_cache = 1@
@eval $m2c_data_context = "generated"@ [generated|NAME]
@eval $m2c_data_init = 1@
@eval $m2c_data_transient = 1@
@eval $m2c_include_examples = 0@
@eval $m2c_irreversible_commit = 0@
@eval $m2c_table_access = "container-cached"@
@eval $m2c_table_dependencies = 1@
@eval $m2c_table_persistent = 0@
@eval $m2c_table_row_creation = 1@
@eval $m2c_table_settable = 1@
@eval $m2c_table_skip_mapping = 1@
@eval $m2c_table_sparse = 0@
@eval $mfd_generate_makefile = 1@
@eval $mfd_generate_subagent = 1@


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.