Dave> Can [md2 flags] be specified via "mib2c -S" as well,
Dave> or do they only work via the md2 file?
Robert> Yes, they should work from the command line.
Sorry, Robert - that doesn't seem to work.
I tried running
./mib2c -S m2c_table_settable=0 -c mib2c.mfd.conf myTable
and it still generated the SET handling code.
Robert> Another neat trick is to put them, as normal mib2c.conf file
Robert> commands, in $HOME/.snmp/mib2c.conf. eg:
Robert> @eval $mfd_fewer_files = 1@
Nope - that also generated the full SET handling.
The only way this worked correctly was if I put:
@eval $m2c_table_settable = 0@
in the 'default-table-myTable.m2d' file.
That gave me a minimal data_set.c file, as desired.
Two other problems:
a) ./mib2c -Swhatever=1 ....
generates an error "no value specified for -S flag".
This (like all the mib2c flags) expects any option values
to be specified as a *separate* parameter - it can't cope
with them being pushed together.
b) ./mib2c -S mfd_fewer_files=1 .....
seems to have no effect whatsoever (whether it's specified using -S,
via the .snmp/mib2c.conf file, or in the default-table-myTable.m2d file)
Are you *sure* this is working for you?
Dave
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders