| Option | Default | Description |
|---|---|---|
-a |
false | use audible ping |
-c <count> |
0 | stop after <count> replies |
-D |
false | print timestamps |
-d |
false | use SO_DEBUG socket option |
-f |
false | flood ping |
-h, -? |
false | print help and exit |
-i <interval> |
1 | wait <interval> seconds between sending each packet |
-l <preload> |
0 | send <preload> packets as fast as possible before falling into normal mode of execution |
-n |
false | no reverse DNS name resolution |
-p <pattern> |
0x0 | content of padding bytes |
-q |
false | quiet output |
-r |
false | ignore routing |
-t <ttl> |
64 | IP time to live |
-v |
false | verbose output |
-V |
false | print version and exit |
-s <size> |
56 | packet's payload size |
-w <deadline> |
0 | stop after <deadline> seconds |
-W <timeout> |
10 | wait <timeout> seconds for response |
- Install required dependencies:
sudo apt-get install cc make- Clone this repository and navigate to its folder
git clone https://github.com/Kuninoto/42_ft_ping ft_ping && cd ft_ping- Build and run (requires root privileges to use socket RAW)
make && sudo ./ft_ping [options] <destination>This project is licensed under the GPL3 license - see the LICENSE file for more details.
Made by Nuno Carvalho (Kuninoto) | [email protected]
