Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counter32 Bug #1

Open
krab22 opened this issue Jul 3, 2015 · 1 comment
Open

Counter32 Bug #1

krab22 opened this issue Jul 3, 2015 · 1 comment

Comments

@krab22
Copy link

krab22 commented Jul 3, 2015

Good afternoon!
When testing the SNMP agent noticed the following:
I make an inquiry
"snmpget -v 2c -c readcomunity 127.0.0.1 1.3.6.1.4.1.20000.1.4.0"
getting
"SNMPv2-SMI :: enterprises.20000.1.4.0 = Counter32: 4294967295"

Thus the agent in response to the request, outputs the packet
"0x30:0x34:0x02:0x01:0x01:0x04:0x0C:0x72:0x65:0x61:0x64:0x63:0x6F:0x6D:0x75:0x6E:0x69:0x74:0x79:0xA2:0x21:0x02:0x04:0x3E:0x26:0x55:0xF2:0x02:0x01:0x00:0x02:0x01:0x00:0x30:0x13:0x30:0x11:0x06:0x0B:0x2B:0x06:0x01:0x04:0x01:0x81:0x9C:0x20:0x01:0x04:0x00:0x41:0x02:0xFF:0xFF:"

Ie in the package comes to 65535 (FFFF).

The error most likely occurs because of the type conversion when parsing came the answer.

Sorry for my english. I use a translator.

@krab22
Copy link
Author

krab22 commented Jul 3, 2015

Name: net-snmp
Arch: x86_64
Version: 5.7.2
Build: 23.fc21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant