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

type 65 not recognized #2

Closed
tyandl opened this issue Dec 8, 2013 · 1 comment
Closed

type 65 not recognized #2

tyandl opened this issue Dec 8, 2013 · 1 comment
Assignees

Comments

@tyandl
Copy link

tyandl commented Dec 8, 2013

When trying to GetTable() with oid: 1.3.6.1.2.1.31.1.1.1.1 on a cisco WS-C3560G-48PS-S, I get an error stating that type 65 is not recognized.

I looked up type 65 (0x41) or Counter32 and found that it is basically an unsigned int that increases monotonically.

Adding the following case to DecodeSequence() seems to give me correct values, but I don't think it is a "correct" solution. I know very little about BER
case Counter32:
decodedValue, err := DecodeInteger(berValue)
if err != nil {
return nil, err
}
result = append(result, decodedValue)

Thank's for the great library!

@cdevr
Copy link
Owner

cdevr commented Dec 11, 2013

I'll need to add some typing info to enable this.

@ghost ghost assigned cdevr Dec 11, 2013
@cdevr cdevr closed this as completed Dec 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants