ValentinBELYN / icmplib

Easily forge ICMP packets and make your own ping and traceroute.
GNU Lesser General Public License v3.0
266 stars 46 forks source link

async traceroute #56

Closed MazokuMaxy closed 1 year ago

MazokuMaxy commented 2 years ago

Please add async version of traceroute.

ValentinBELYN commented 2 years ago

Hi @MazokuMaxy,

I would love it but I have the impression that there is no alternative to recvfrom at the socket level in the asyncio library.

The sock_recv method currently used for the asynchronous implementation does not return the source IP address of ICMP responses.

As much as for the ping and multiping functions this is not a problem, but for the traceroute where we need to retrieve the IP addresses of the intermediate gateways, this is problematic.