You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to set the DSCP/ToS field for outgoing IPv6 ICMP packets with gufo-ping but I am getting a 'Protocol not available (os error 92)' . It seems IPv4 uses IPPROTO_IP/IP_TOS while IPv6 uses IPPROTO_IPV6/IPV6_TCLASS. I was wondering if this has been encountered before?
python gufo-ping.py 2001:df01::1
PING 2001:df01::1: 64 bytes
Traceback (most recent call last):
File "gufo-ping.py", line 34, in<module>
asyncio.run(main(sys.argv[1]))
File "/usr/lib/python3.8/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.8/asyncio/base_events.py", line 608, in run_until_complete
returnfuture.result()
File "gufo-ping.py", line 12, in main
async forrin ping.iter_rtt(address):
File "/home/ubuntu/gufo-ping/lib/python3.8/site-packages/gufo/ping/ping.py", line 195, in iter_rtt
sock = self.__get_socket(addr)
File "/home/ubuntu/gufo-ping/lib/python3.8/site-packages/gufo/ping/ping.py", line 120, in __get_socket
sock = PingSocket(
File "/home/ubuntu/gufo-ping/lib/python3.8/site-packages/gufo/ping/socket.py", line 69, in __init__
self.__sock.set_tos(tos)
OSError: Protocol not available (os error 92)
Python version information
python print-version.py
3.8.0 (default, Dec 9 2021, 17:53:27)
[GCC 8.4.0]
Gufo Ping version information
gufo-ping version: 0.2.4
Operation system version
Ubuntu 18.04
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
The text was updated successfully, but these errors were encountered:
@dvolodin7 Hi Dmitry,
How can I help with fixing this bug ? I don't know much about Rust but I could help with the Python side of it. Fixing this bug or adding the source address feature will greatly help with what I'm trying to do.
Describe the issue:
Hi,
I'm trying to set the DSCP/ToS field for outgoing IPv6 ICMP packets with gufo-ping but I am getting a 'Protocol not available (os error 92)' . It seems IPv4 uses IPPROTO_IP/IP_TOS while IPv6 uses IPPROTO_IPV6/IPV6_TCLASS. I was wondering if this has been encountered before?
regards
Dimeji
Reproduce the code example:
Error message:
Python version information
python print-version.py
3.8.0 (default, Dec 9 2021, 17:53:27)
[GCC 8.4.0]
Gufo Ping version information
gufo-ping version: 0.2.4
Operation system version
Ubuntu 18.04
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
The text was updated successfully, but these errors were encountered: