tracing routes (traceroute)

Jp Calderone exarkun at intarweb.us
Sat Mar 22 15:28:29 EST 2003


On Sat, Mar 22, 2003 at 03:17:56PM -0500, Joe Brown wrote:
> 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 ;)

  On linux, you need root permissions to open these kinds of sockets.  I
tried your program as root, and it works :)

  Jp

-- 
C/C++/Java/Perl/Python/Smalltalk/PHP/ASP/XML/Linux (User+Admin)
Genetic Algorithms/Genetic Programming/Neural Networks
Networking/Multithreading/Legacy Code Maintenance/OpenGL
See my complete resume at http://intarweb.us:8080/
-- 
 up 2 days, 15:59, 6 users, load average: 0.02, 0.02, 0.00





More information about the Python-list mailing list