my own implementation of Linux command ping and traceroute
gcc-7.1.0 + macOS 10.12.6
./GPingTraceroute -p [hostname/IP address] # for ping
./GPingTraceroute -t [hostname/IP address] # for traceroute
put GPingTraceroute.c
and GPingTraceroute.h
in one same folder, and then enter that folder in terminal using cd
command or other methods, then simply type the following command and you are good to go:
gcc GPingTraceroute.c -o GPingTraceroute
-
add traceroute implementation
-
translate comments into English🤣