On Thu, 1 Dec 2011 15:48:41 -0500 James wrote:
JP> Hi, Robert
JP>
JP> Thanks for the suggestion.
JP>
JP> Net-SNMP v5.3.0.1 does have the CONTAINER_SET_OPTIONS macro defined.
JP> However, trying to set the option to UNSORTED had no effect.
JP> (CONTAINER_SET_OPTIONS() sets the return code to -1, so the 'options'
JP> field of the container is apparently a null pointer.)
I grabbed 5.3 to take a peek... the code is there apparently, but the wrapper
function for the options pointer isn't there and the options pointer isn't set.
So, you have two options. 1) if you can rebuild from source with a patch, we
can fix the options pointer, or 2) call netsnmp_binary_array_options_set()
directly, like so:
netsnmp_binary_array_options_set(my_table->container,
1, CONTAINER_KEY_UNSORTED);
The reset it when done:
netsnmp_binary_array_options_set(my_table->container, 1, 0);
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders