25 lines
375 B
C
25 lines
375 B
C
#ifndef FT_PING
|
|
#define FT_PING
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
typedef struct s_ping_config
|
|
{
|
|
/* Target */
|
|
char *destination;
|
|
|
|
/* Options */
|
|
uint64_t count;
|
|
double interval;
|
|
uint8_t ttl;
|
|
size_t packet_size;
|
|
double timeout;
|
|
|
|
/* Flags */
|
|
uint8_t flags;
|
|
} t_ping_config;
|
|
|
|
int cli_parse_arguments(int argc, char **argv, t_ping_config *config);
|
|
|
|
#endif
|