Skip to content

Pedagogical project: a rewriting of the inetutils 2.0 ping command

Notifications You must be signed in to change notification settings

TheoSignore/ft_ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Theo SIGNORETheo SIGNORE
Theo SIGNORE
and
Theo SIGNORE
Sep 7, 2023
7bc0fab · Sep 7, 2023

History

22 Commits
Aug 8, 2023
Aug 24, 2023
Sep 7, 2023
Aug 14, 2023
Aug 24, 2023
Aug 31, 2023
Sep 3, 2023
Aug 31, 2023
Aug 14, 2023
Aug 14, 2023
Sep 7, 2023
Aug 24, 2023
Aug 8, 2023
Aug 14, 2023

Repository files navigation

ft_ping

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.


Summary

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.


Building and usage

Dependencies

This project requires Make and the gcc compiler. The executable requires capabalities to open RAW sockets

Building

git clone https://github.com/TheoSignore/ft_ping
cd ft_ping
make
sudo setcap cap_net_raw,cap_net_admin=eip ./ft_ping

Usage

Display help: ./ft_ping -?

./ft_ping [-v] <HOST>

-v: optional verbose mode

HOST: can be

  1. a valid IPv4 address
  2. a fully qualified domain name (FQDN) associated with a valid IPv4 address

Description

Sends ICMP_ECHO requests to a network host and uses the possible replies to compute loss and latency statistics.


Written by Théo Signore

About

Pedagogical project: a rewriting of the inetutils 2.0 ping command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published