42 school ft_ping
project.
Disclaimer: This project was developped for a purely pedagogic purpose. It is not meant to replace your system's ping command.
A partial rewriting of inetutils2.0's ping command written in c for linux.
The objective of this project was to use and understand the IP and ICMP protcols.
This project requires Make
and the gcc
compiler.
The executable requires capabalities to open RAW sockets
git clone https://github.com/TheoSignore/ft_ping
cd ft_ping
make
sudo setcap cap_net_raw,cap_net_admin=eip ./ft_ping
Display help: ./ft_ping -?
./ft_ping [-v] <HOST>
-v
: optional verbose mode
HOST
: can be
- a valid IPv4 address
- a fully qualified domain name (FQDN) associated with a valid IPv4 address
Sends ICMP_ECHO requests to a network host and uses the possible replies to compute loss and latency statistics.
Written by Théo Signore