5 Commits

Author SHA1 Message Date
vauden
0811342010 Add: more commentary & clean code 2024-11-19 19:22:38 +01:00
vauden
6cd5b0618d Add: error manager
Added function to print errors corresponding to the packet type and code values
2024-11-19 18:51:04 +01:00
vauden
26d9f40030 Added bonus and refactor again
Added the following flags :
-c to make a NUMBER of pings
-f to add flood mode
-i to set an interval of NUMBER seconds between pings
-l to send a NUMBER of pings as fast as possible then swapping to normal mode
-q to add quiet mode

Refactored main.c :
Made flags.c for avoiding the main() function becoming a masterclass and make the file more readable
Moved some function from main.c to utils.c

Made some change to mimic the behavior of the ping binary of inetutils2.0
2024-11-16 02:23:41 +01:00
vauden
eb125bde1a Fixed loopback being catched 2024-11-08 20:09:21 +01:00
cb3b707e53 Add Makefile 2024-11-08 16:11:54 +01:00