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

Support 64bit BGP ASN #13

Closed
davehope opened this issue Apr 12, 2015 · 1 comment
Closed

Support 64bit BGP ASN #13

davehope opened this issue Apr 12, 2015 · 1 comment

Comments

@davehope
Copy link
Contributor

When querying a BGPv4 enabled router using OSS_SNMP a negative number is returned if 64bit ASN are used. In the below example the correct AS number is 4242422222:

$ snmpwalk -c public -v 2c ip.address 1.3.6.1.2.1.15.2.0
iso.3.6.1.2.1.15.2.0 = INTEGER: -52545074

The fix seems to be subtracting the result from 4294967296 if the SNMP value is negative. i.e. 4294967296-52545074= 4242422222.

This issue is reproducible when using the bundled BGP sample:
https://github.com/opensolutions/OSS_SNMP/blob/master/examples/bgp.php

@barryo barryo mentioned this issue Jul 21, 2018
@barryo
Copy link
Member

barryo commented Jul 21, 2018

I'm afraid I don't have time to research SNMP support and official MIBs with rfc6793. If someone wants to do the leg work and post appropriate references here, I'll look at it.

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

2 participants