Unsigned32 range check not working

Matteo Bini <[email protected]> Mon, 21 Oct 2024 18:28:44 +0200
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello Net-SNMP community,
I've got a problem with Unsigned32 values.

In my MIB there's the following definition:

	unsignedNum1 OBJECT-TYPE
	SYNTAX      Unsigned32 (30000000 .. 511975000)
	MAX-ACCESS  read-write
	STATUS      current

When I prepare data for a SET request with an out of range integer
value, snmp_add_var returns the SNMPERR_RANGE int. However this does not
happen with out of range values for the Unsigned32 type, which I map to
the char 'c' in my Net-SNMP code, when I have to send SET requests for
that type.

What might I be doing wrong?

Thank you for the support and for this amazing library!

--
Matteo Bini


_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users