A custom implementation of the ping utility in C, allowing users to test network connectivity and measure round-trip time to a target host.
- ICMP echo request/reply
- Round-trip time measurement
- Packet loss statistics
- Customizable packet size
- Timeout handling
To build the project:
makeThis will create an executable named ping.
./ping [target_host]Example:
./ping google.comTo clean up build artifacts:
make cleanThe implementation includes:
- ICMP packet creation and parsing
- Socket programming for raw sockets
- Time measurement
- Statistics calculation
- Error handling
This program requires root/administrator privileges to run due to the use of raw sockets for ICMP packets.