tracing routes (traceroute)

Joe Brown joe at overdrivepc.com
Sat Mar 22 15:17:56 EST 2003


I've written a rudimentary traceroute that works well on win32 (python 2.2)

For the little hair left on my head, I can't figure out how to get this 
thing to work on Linux (python 2.3).  My every attempt to open an ICMP 
socket on Linux has been ill-fated.  I'm drawing the conclusion that 
sockets are somewhat broken in this version of python on Linux.

Anyway, this traceroute works pretty good on windows, where it's useful, 
since window's tracert is rather slow (unless you have two nic's 
installed into your winbox --go figure ;)

I did run across Jeremy Hylton's ping/traceroute, but it's designed for 
Python 1.4, and fails on python 2.2 before trying to open a socket.

TIA,
-Joe
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: traceroute.py
URL: <http://mail.python.org/pipermail/python-list/attachments/20030322/de116013/attachment.ksh>


More information about the Python-list mailing list