lextudio / sharpsnmplib

C# SNMP Library (#SNMP) - Open source SNMP implementation for C# and .NET
https://sharpsnmp.com
MIT License
358 stars 151 forks source link

SetRequestMessage data=-128 error #660

Closed lextudio-support closed 1 month ago

lextudio-support commented 1 month ago

data = new Integer32(-128);

oids.Add(new Variable(new ObjectIdentifier(objSNMP.Oids[i]), data));

SetRequestMessage setRequest = new SetRequestMessage(0, VersionCode.V1, newOctetString("public"), oids);

Set to -127 can

set -128 overflow, numbers about to become a great

What is the reason?

Do not support a small number of more than -127?
Or can only be set to 1 byte?

Original Reported Date: 2012-05-23T23:43:18.693-07:00 Original CodePlex Discussion Thread ID: 356929

lextudio-support commented 1 month ago

Copied from CodePlex without authors:

Which version of #SNMP do you use? There was a bug fixed in 6.1.1 and 7, 

Original Posted Date: 2012-05-24T19:41:39.56-07:00

lextudio-support commented 1 month ago

Copied from CodePlex without authors:

I use Version:6.1.10419.0

Which version do not have this bug?

Original Posted Date: 2012-05-24T19:53:16.733-07:00

lextudio-support commented 1 month ago

Copied from CodePlex without authors:

6.1.1's version number is 6.1.10521. So you should upgrade to 6.1.1.

Note that we no longer support 6.* releases, as they are too old. Consider migrating to our supported releases such as 7.0 as soon as possible.

Original Posted Date: 2012-05-24T23:45:41.287-07:00

lextudio-support commented 1 month ago

Marked as Answer Date: 2013-10-06T20:40:13.97-07:00