Commit Graph
7 Commits
Author SHA1 Message Date
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
vauden 00fcdacf31 Fixed issue when 0 packets are sent 2024-11-06 00:38:46 +01:00
vauden f45a755633 Major refactor 2024-09-25 02:28:32 +02:00
vauden abbcf06dcd added signal handling 2024-09-16 20:49:53 +02:00
vauden 35c0263e1b Major refactor 2024-09-16 19:47:54 +02:00