[IPv6] Windows: fix IPv6 routing + Net6#644
[IPv6] Windows: fix IPv6 routing + Net6#644p-l- merged 11 commits intosecdev:masterfrom gpotter2:fix-net6
Conversation
|
Why did you close this PR ? |
|
My bad |
Codecov Report
@@ Coverage Diff @@
## master #644 +/- ##
==========================================
+ Coverage 80.88% 80.93% +0.04%
==========================================
Files 140 140
Lines 34572 34568 -4
==========================================
+ Hits 27964 27978 +14
+ Misses 6608 6590 -18
|
|
Could you remove the changes related to the renaming of ipaddress, or move it to a separate commit ? Thanks. |
|
@guedou Here's an updated version. |
|
Thanks. Could you also add something like the following, that initialy triggered the issue ?
|
|
Modified it a bit. |
|
@guedou Just discovered a new bug: Sorry if the PR suddenly became big, explanation:
I don't think this should be splitted in many PRs, as it all comes from the same bug... More over the PR is easy to understand. |
|
Is it already merged into main branch? |
|
@kpowojski No it's not merged yet. |
|
@guedou Calling for review. That should fully make IPv6 work under Windows... All the commented tests pass on a local machine. |
scapy/arch/pcapdnet.py
Outdated
There was a problem hiding this comment.
Makes send detects when it should add Loopback()/ instead of Ether()/. Already existed on other implementations.
There was a problem hiding this comment.
Could you add this comment in the code ? Thanks.
scapy/all.py
Outdated
There was a problem hiding this comment.
Gets updated versions of LOOPBACK_INTERFACE, LOOPBACK_NAME when importing scapy.
scapy/arch/windows/__init__.py
Outdated
There was a problem hiding this comment.
Obviously npcap is in winpcap. That test would have always been true...
scapy/layers/inet.py
Outdated
There was a problem hiding this comment.
Chose between hlim and ttl (one is for IPv4, the other one for IPv6)
There was a problem hiding this comment.
Could you add a docstring to _ttl() ?
scapy/layers/inet6.py
Outdated
There was a problem hiding this comment.
self.src and self.dst calls packet with str() in case they are Net6 objects
There was a problem hiding this comment.
Can you add a space after commas ?
|
I believe that calling |
scapy/arch/pcapdnet.py
Outdated
There was a problem hiding this comment.
Could you add this comment in the code ? Thanks.
scapy/layers/inet.py
Outdated
There was a problem hiding this comment.
Could you add a docstring to _ttl() ?
scapy/layers/inet6.py
Outdated
scapy/layers/inet6.py
Outdated
There was a problem hiding this comment.
Can you add a space after commas ?
|
@guedou The |
|
@guedou Hey could we get this merged ? |
|
I am still wondering if the |
|
True. (not cmp but things like __eq__) |
|
I've removed many. Some are still compulsory: when testing the type of IPv6 (global...) and when looking in the table. |
|
@p-l- Could you also review this please ? |
|
@guedou Hi, any news on this ? |
guedou
left a comment
There was a problem hiding this comment.
Some calls to str() are still not needed. Also, could you remove the commented tests, or add a tag to disable them with Travis/AppVeyor.
scapy/layers/inet6.py
Outdated
There was a problem hiding this comment.
I think that it will be safe to check for StopIteration exceptions here.
scapy/layers/inet6.py
Outdated
There was a problem hiding this comment.
These calls to str() are not needed.
scapy/layers/inet6.py
Outdated
There was a problem hiding this comment.
Not needed as it should not happen.
scapy/layers/inet6.py
Outdated
There was a problem hiding this comment.
Not needed as it should not happen (i.e. it can't be an iterator).
scapy/layers/inet6.py
Outdated
There was a problem hiding this comment.
Not needed as it should not happen.
test/mock_windows.uts
Outdated
There was a problem hiding this comment.
If these tests are not needed, can you remove them ?
There was a problem hiding this comment.
Right.
I'll leave the Net6 tests for when travis and appveyor support ipv6 (should be quite soon, at least for travis)
scapy/route6.py
Outdated
There was a problem hiding this comment.
Don't you mean import scapy.consts?
test/regression.uts
Outdated
There was a problem hiding this comment.
Is'nt it better to tag these tests with ipv6 and disable them in Travis and AppVeyor ? I do not like like that some tests are commented out.
There was a problem hiding this comment.
Done on all except this one...
|
It looks to me. @p-l- do you want to have another look ? |
|
@p-l- Hi, do you have any more comments about this one ? |
|
Sorry @gpotter2 can you rebase against current master? |
This will speed up the boot
In order to avoid any conflicts when the consts are changed
|
@p-l- Done |
This PR:
in6_getifaddrfunction: replace the windows one by the Pcap APIipaddressregex (the name was really confusing)in6_getifaddrfunction ofpcapdnet.py==> now use it when loading IPv6