-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
pysnmp doesn't support IPv6 link-local addresses #445
Comments
You should read #429 to learn why posting here isn't the right thing to do in the future. About this specific error, your modification of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IPv6 link-local addresses are often the only way to reliably find an unconfigured switch.
If I do
snmpwalk [fe80::abd:43ff:fe75:bfc5%ens3f0] -u admin
(MD5, no auth, SNMPv3) I get the expected treehowever, if I modify the
fetch-variables-over-ipv6.py
example to use this same addres, I getThe immediate problem seems to be that the link-local address is parsed by
inet_pton
, howeverthere is an underlying assumption that IPv6 addresses are just
[(p,port,family)
tuples, while the complete struct also includes a "zone info" that indicates the correct interface which must also be passed to thesocket
call and shouldn't be stripped:The text was updated successfully, but these errors were encountered: