linger flag seems to work now

This commit is contained in:
2025-05-22 23:30:01 +02:00
parent 94085f5bb2
commit 64ac4ba5e0
4 changed files with 21 additions and 18 deletions

View File

@ -49,21 +49,22 @@ typedef struct s_host_list
typedef struct s_settings
{
t_host_list *hosts;
int count; // -c (--count)
int timeout; // -w (--timeout)
double interval; //-i (--interval)
int linger; //-W (--linger)
int ttl; // --ttl
short setTtl; // is ttl set
t_host_list *hosts;
int count; // -c (--count)
int timeout; // -w (--timeout)
double interval; //-i (--interval)
int linger; //-W (--linger)
int ttl; // --ttl
short setTtl; // is ttl set
int socket;
uint16_t id;
short stop;
short err;
char *name;
int socket;
uint16_t id;
short stop;
short err;
char *name;
struct timeval last_send_time;
char current_ip[INET_ADDRSTRLEN];
char current_ip[INET_ADDRSTRLEN];
} t_settings;