「🏗️」 wip: wtf is this
This commit is contained in:
@ -1,20 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include "bits/types/struct_timeval.h"
|
||||
#include "help.h"
|
||||
#include "opt_parse.h"
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
extern char *exec_name;
|
||||
extern char *exec_name;
|
||||
extern int tx_count;
|
||||
extern int rx_count;
|
||||
extern char *address;
|
||||
extern double *times;
|
||||
|
||||
typedef struct {
|
||||
bool verbose;
|
||||
int count;
|
||||
int size;
|
||||
int timeout;
|
||||
int ttl;
|
||||
int interval;
|
||||
} ping_t;
|
||||
bool verbose;
|
||||
uint32_t count;
|
||||
uint16_t size;
|
||||
uint16_t timeout;
|
||||
uint16_t linger;
|
||||
uint16_t interval;
|
||||
} options_t;
|
||||
|
||||
#define DEFAULT_COUNT -1
|
||||
#define DEFAULT_VERBOSE false
|
||||
#define DEFAULT_SIZE 0
|
||||
#define DEFAULT_INTERVAL 0
|
||||
#define DEFAULT_TIMEOUT 0
|
||||
|
||||
#define DEFAULT_SIZE 64
|
||||
#define DEFAULT_INTERVAL 1
|
||||
#define DEFAULT_TIMEOUT -1
|
||||
#define DEFAULT_COUNT -1
|
||||
#define DEFAULT_LINGER 10
|
||||
|
||||
int send_ping(args_t *args);
|
||||
|
Reference in New Issue
Block a user