Comments (12)
Thank you for reporting this issue. I'll have a look at it.
from multi-ping.
Recently, IPv6 support was added to multi-ping. The issue seems to stem from that. The code works for me as is and the IPPROTO_ICMPV6
symbol is defined for me.
@cleonello and @geokal, since I can't reproduce it here, could you please help me out and run a small test for me? Could you please start a Python shell and import the socket module, then check one attribute value for me?
>>> import socket
>>> socket.has_ipv6
What output do you get?
@geokal, could you please also let me know what version of Ubuntu you are running?
from multi-ping.
This solves the issue:
Open ...\lib\site-packages\multiping_init_.py
Line 129 where IF starts and delete "if ..... " to the end of the line and the line 130.
from multi-ping.
Hi, I can confirm the same happens in Ubuntu Linux
from multi-ping.
Hi, @jbrendel in my Windows terminal the output of socket.has_ipv6
is equal to true. But again the result after running the python script located in the readme section:
is the same as @cleonello. I will report back on Ubuntu cause I don't have access right now. Thanks again!!
from multi-ping.
Having the same issue on Windows 10 using python 3.5.2
>>> import socket
>>> socket.has_ipv6
returns True
from multi-ping.
Hi, I can confirm the same happens on Win 10 Python 3.6.5
socket.has_ipv6 returns True
from multi-ping.
@mametov's solution doesn't work for me under python 3.4.3 on Windows XP (nor does replacing socket.IPPROTO_ICMPV6 with the hardcoded value 58). What does work is to comment out the self._sock6... statements on lines 119 and 120 (effectively removing IPv6 from multiping).
Technically, this shouldn't be a problem, given that Microsoft says that IPPROTO_ICMPV6 should be available on Windows XP. Maybe this has something to do with this bug.
from multi-ping.
Can confirm @mametov's workaround on win10 3.6.5, but still hoping for a real solution
from multi-ping.
Hello everyone. Thank you for continuing to follow up on this. My apologies for not checking back earlier.
I have just pushed what I believe is a patch for this. In effect, it checks whether the IPPROTO_ICMPV6
attribute is present in socket
or not. And if not then it uses the hardcoded value of 58.
I tested this on Ubuntu 14.04, 16.04 and on Windows 10 and it works (no surprise on the Ubuntus, since they have that value available anyway).
I'm concerned about @geostar1024 report, though, since apparently you tried hardocding 58 and it did not work for you? I really don't know what to say to that. This, as patched right now, seems to work. At least with Python3 on Windows 10.
If everyone could give the current version a go, please, and let me know? I don't want to just close this issue without getting your feedback first.
Thank you again!
from multi-ping.
If this works for everyone, I will mark this issue as closed...
from multi-ping.
@jbrendel thanks a lot will check tomorrow!
from multi-ping.
Related Issues (20)
- Demo.py NameError
- Get error "PermissionError: [Errno 13] Permission denied" for some network HOT 2
- Feature request: Add support for >65535 addresses
- OSError: [WinError 10040] HOT 1
- Host-unreachable replies HOT 1
- Exception when none of the hostnames can be resolved
- Bug when only pinging ipv6 addresses
- multi_ping retry not working correctly HOT 1
- Burst ICMP request lead to packet loss HOT 2
- Update readme examples for Python 3
- unclosed socket HOT 2
- Phantom host activity HOT 2
- cannot change the packet size
- MultiPingSocketError while django testing app development on local server
- Root privileges required for sending ICMP error while running application in docker container.
- Bug: RTT is incorrect for IPv6 Packets
- Bug: when the dest_addrs count is bigger then 5000, the return results is incorrect
- Changing source address or interface
- README references silent_lookup_errors
- Ping times incorrect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multi-ping.