-
Notifications
You must be signed in to change notification settings - Fork 3
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
OID prefix starting with dot #4
Comments
Thanks for reporting this. I decided to solve it in the SNMP library instead: FreeDSx/SNMP@ea41da7. As that convention seems specific to SNMP for whatever reason. I'm not sure where the leading dot format started. I have never seen it mentioned in any official SNMP RFCs or the ASN.1 docs (X.680, X.690). I could probably add more checks to the validity of a string OID format, but I try not to do too much of that in the encoder since it would start to impact performance on large sets of data. |
Cool, thanks, will test it as soon as I get to it.
Talking about the convention, you know SNMP, every enterprise has its own
MIB for everything 😅 Things are done multiple ways even using OIDs.
…On Thu, Feb 7, 2019, 05:12 Chad Sikorra ***@***.*** wrote:
Thanks for reporting this. I decided to solve it in the SNMP library
instead: ***@***.***
<FreeDSx/SNMP@ea41da7>.
As that convention seems specific to SNMP for whatever reason.
I'm not sure where the leading dot format started. I have never seen it
mentioned in any official SNMP RFCs or the ASN.1 docs (X.680, X.690). I
could probably add more checks to the validity of a string OID format, but
I try not to do too much of that in the encoder since it would start to
impact performance on large sets of data.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAUAJWe9p_K3MNul2jrxbNBESXDEx1qYks5vK6e1gaJpZM4alBM3>
.
|
Sometimes SNMP oids gets prefixed with
.1.3.6.1
and sometimes with1.3.6.1
However https://github.com/FreeDSx/ASN1/blob/master/src/FreeDSx/Asn1/Encoder/BerEncoder.php#L725 can work only with the latter so calling it fails on
Warning: A non-numeric value encountered
The text was updated successfully, but these errors were encountered: