Hi All, I have an unsigned object defined in mib as given below.
testObj OBJECT-TYPE SYNTAX Unsigned32 (1..4294967295) MAX-ACCESS read-create STATUS current DESCRIPTION " " When I perform set operation on this with a value beyond its range it's value gets truncated. # snmpset -c public localhost testObj u 4294967297 truncating integer value > 32 bits ==========> TEST-MIB::testObj."index" = Gauge32: 2 ==========> Can any one tell me how can I put a range restriction in case of an unsigned object such that if object value provided is beyond 4294967295 snmpset should show "value out of range" message or agent should return "unsupported object value" error as it does in interger32 and other cases. Moreover I observed that mib2c is not generating any range restriction in check_testObj function in this case. Thanks... ------------------------------------------------------------------------------ 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