I'm playing around with mib2c and am a bit confused with SET commands. I've
run this (part of net-snmp examples MIB),

mib2c -c mib2c.scalar.conf netSnmpExampleInteger

And in the generated code there is a function called
"snmp_set_var_typed_value()". From experimentation (and code study), I've
figured out that we essentially pass the result of a GET operation into this
function, so the snmpd agent will report it back. Similarly, there is a
function called "netsnmp_check_vb_type()" that is used to check the type of
a SET operation - try setting a character into an integer object and this is
the function that rejects the operation.

BUT, both these functions rely on a structure called "netsnmp_request_info".
Is there any function in net-snmp that will let me extract the integer data
value that comes with a SET operation out of this structure?

Intuitively, I feel that there should be such a function (or something
similar), but searching the web wiki, hasn't given me any leads and locally
created doxygen is just getting me lost.

Puzzled,
Abraham V.
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to