error handling, change -f to -i

This commit is contained in:
2025-04-29 02:09:18 +02:00
parent 4e344d945e
commit 208dcad657
4 changed files with 98 additions and 11 deletions

View File

@ -38,7 +38,7 @@ typedef struct s_settings
t_host_list *hosts;
int count; // -c (--count)
int timeout; // -w (--timeout)
short flood; // -f (--flood)
double interval; //-i (--interval)
short no_resolve; //-n (--numeric)
int ttl; // --ttl
short setTtl; // is ttl set
@ -65,5 +65,6 @@ int add_host(t_settings *res, char *host);
void free_hosts(t_host_list *list);
t_settings parse_args(int argc, char **argv);
void show_help(t_settings *set, char *name);
void send_pings(t_settings set);
#endif