On Wed, 21 Dec 2011 01:43:18 +0530 Ravi wrote:
RK> Can any one tell me how can I put a range restriction in case of an
RK> unsigned object
RK> such that if object value provided is beyond 4294967295  snmpset
RK> should show "value out of range" message or agent should return
RK> "unsupported object value" error as it does in interger32 and other
RK> cases. Moreover I observed that mib2c is not generating any range
RK> restriction in check_testObj function in this case.

Range handling is spotty in mib2c, depending on which template you are using.
There should be a function you implemented to set the value, so just add a
range check there.

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to