pasring start

This commit is contained in:
2025-04-25 19:35:48 +02:00
parent e622d9d175
commit 77668368ab
4 changed files with 59 additions and 16 deletions

View File

@ -13,12 +13,22 @@
#define PACKET_DATA_LENGTH 40
#define HELP_MESSAGE " [OPTION...] HOST ...\n\
Send ICMP ECHO_REQUEST packets to network hosts.\n"
typedef struct s_settings
{
char *host;
int count;
int ttl;
int count; // -c (--count)
int timeout; // -w (--timeout)
short flood; // -f (--flood)
short no_resolve; //-n (--numeric)
int ttl; // --ttl
short stop;
short err;
} t_settings;