You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: