Template:FAQ:Coding 10
From Net-SNMP Wiki
Revision as of 19:42, 20 July 2009 by Dts12 (Talk | contribs) (Latest FAQ revision - preparing for 5.5 release)
This uses a very powerful tool called a "text editor" :-)
The mib2c
tool uses separate configuration
files to
generate code for scalar objects, and for tables. This means that
it's not possible to automatically generate a single code file
that supports both scalars and tables.
Instead, the two code files need to be generated separately, and then combined manually. This will typically mean copying the handler routines for the scalar object(s) into the table file, and adding the code to register these handler(s) to the table initialisation routine.