The Ping CLI Application covers various features like:-
- Accepting as a positional terminal argument a hostname or IP address.
- Showcases equivalent IP Address for the hostname argument
- Showcases the resolved reverse lookup domain value, i.e., converts dot notation IP address to hostname.
- Emitting requests with a periodic delay as long as the program is running.
- Report of packets sent lost and received as well as RTT times and total time.
- Features like TTL as argument and time exceeded alert if the TTL value of a packet is greater than the specified value and prints information baout that packet (At least information about one packet is always printed). Many more features are present.
The program can be run either using makefile or by compiling Ping_Cli_Application.c
Install essential packages using Linux terminal or WSL on windows.
$ sudo apt-get install build-essential
$ gcc Ping_Application_CLI.c -o pingcli
$ sudo ./pingcli <argument1> <argument2>
$ make
$ sudo ./pingcli <argument1> <argument2>
It accepts 2 diiferent argumants as follows:-
If number of arguments is less than 2 or more than 3 it will result in an alert.