-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
IPv6 routes parsing bug on 2.6.0 #4541
Comments
Could you share the content of your IPv6 table?
Also the output of the following in a Python shell:
This is an OS-specific issue, so please run it in the same environment. Thanks |
from scapy.all import *
fails on python3.9
|
ahh - just realised that socket should be imported too...
|
Thanks. What's the content of Results are supposed to be filtered for IPv6 only in this part of the code, but as you can see here the answer contains all the IPv4 too. Somethings going wrong.. I'll have to try to reproduce using RHEL |
I've also seen this reproduced on Ubuntu 20.04 with IPv6 disabled. |
>>> socket.AF_INET6
<AddressFamily.AF_INET6: 10> Is this what you're looking for? |
Does this: #4560 fixes your issue? |
Yes, this resolves the issue I was seeing. |
Great ! Thanks. Glad we could work that out. |
Me too - thanks for your help! |
Brief description
After upgrading to scapy 2.6 previously working scripts now fail at the import stage. I've been able to reproduce this on the command line in a venv with only scapy installed.
I've attached a full version of the stack trace
example.txt
I've noticed from the stack trace reference to inet6. inet6 is not enabled on this host
Scapy version
2.6.0
Python version
3.9
Operating system
Linux 4.18.0-372.26.1.el8_6.x86_64
Additional environment information
Using rockylinux8
How to reproduce
using python3.9 run the following
from scapy.all import *
Actual result
Expected result
I expect the package to load without error
Related resources
No response
The text was updated successfully, but these errors were encountered: