rlaager / docsis

This program encodes a DOCSIS binary configuration file from a human-readable text configuration file.
http://docsis.sourceforge.net
GNU General Public License v2.0
114 stars 70 forks source link

resolve_oids and NETSNMP_OID_OUTPUT_NUMERIC #39

Closed nickhilliard closed 8 years ago

nickhilliard commented 8 years ago

the CLI parsing code in main() sets resolve_oids to zero and then calls netsnmp_ds_get_boolean(NETSNMP_DS_LIBRARY_ID, NETSNMP_OID_OUTPUT_NUMERIC) to force the snmp libs to output in numeric format. This netsnmp call should be moved to setup_mib_flags(), where all the other snmp flags are set.

AdrianSimionov commented 8 years ago

Nick, if you have time feel free to attack this issue. I cannot promise anything until my home lab will be back online which might take some time. I marked it as a feature as it works as it is now, but from an optimization point of view it should be as you mentioned.

Although I did not check the code yet.

AdrianSimionov commented 8 years ago

Fixed.