I have used libsmi for a couple of projects, having said that, the one
thing I have discovered in regards to smiInit (this is proven with the
sample progam, smiInit takes an argument, or NULL, using NULL, it will
not dump the OID tree, except for
the first node, then nothing else follows... except the remaining
numbers. However, if you put something (doesn't matter what) as a char
* argument, the tree parse works. I have looked at the manual page many
times, and even looked
at the 'C' code for smiInit, and I am not sure of the full functionality
of the argument, other than it adds a 'handle' in the init
function, all the the man page says is 'tag:dataset' I am not sure what
this means in the context it is implemented.
Can someone provide more insight, as to how and why someone would used
this, by a more practical explanation?
I can pass "x", and the parse works, no "x:yyy", so I am not sure what
this parameter would be used for other than
it actually parsing the mib tree.