-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Zero block in IPv6 route prefix misinterpreted #359
Comments
Actually it seems that the return value from inet_pton from pton_ntop.py is fed into inet_ntop, which causes the issue. |
For sure Thanks. |
@p-l- that's a nasty nasty bug =) |
Hi,
The issue here is the first line though. |
Thanks a lot. I was able to reproduce the issue. |
@guedou I will do so. I need to find some time to create a according PR. |
Handle ipv6 addresses according to RFC 5952 Add regression tests
Hi,
if you have a zero block in one of your route prefixes scapy will die with a "Illegal syntax for IP address" exception.
In arch/linux.py:263 the route is read and
d
is set tofd0020010000c0200000000000000000
.This parsed in the function inet_pton from pton_ntop.py and incorrectly truncated to
fd00:2001::c020::
(the correct value for that example would befd00:2001:0:c020::
), which again is validated from the same function at a later point and causes the exception.I installed scapy in a virtualenv and with pacman. Running
sudo scapy
andfrom scapy.all import *
in ipython causes the exception.The text was updated successfully, but these errors were encountered: