Python 100 project #33: Simple Traceroute #2

I modified some lines on previous traceroute on #32.

  • modified break sequence so that it can skip those nodes which are configured not to respond to udp request.
  • added RTT. I tried to use sent_time and time from the scapy itself. But it seems the value is not retirievable and I just ended up using legacy time function to get the idea of RTT(of course this is not reliable, so it’s just an idea)

 

Output Example:

 

Here is the code: