Skip to content

ref-humbold/Traceroute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traceroute

Release License

Simple ICMP traceroute

About

Traceroute shows a path through the Internet from your computer to a specified address. This implementation uses ICMP packages and raw sockets.

Output format

When there are replies for any of the requests sent, then reply addresses are displayed with average reply time with count of responses:

<step>. <reply addresses> -- <average time> (<responses count>)

When there are no replies, then a single asterisk character is displayed:

<step>. *

Dependencies

Standard build & run

versions last used by the author are in double parentheses and italic

General:

  • Linux-based operating system
    ((Debian testing))
  • C++ compiler
    ((APT package g++, 10.2.+))
  • CMake
    ((APT package cmake, 3.18.+))
  • GNU Make
    ((APT package make, 4.3.+))

Automated formatting


How to build?

Traceroute can be built using CMake that generates GNU Make Makefile.

Follow these steps to build:

$ cd /path-to-project-directory/
$ mkdir build
$ cd build
$ cmake ..
$ make

How to run?

Make sure you've got sudo privileges so as to use raw sockets! Otherwise traceroute won't work.

Traceroute can be run directly using the executable file in the bin root directory:

$ sudo /path-to-project-directory/bin/traceroute