21 lines
302 B
C
21 lines
302 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
extern char *exec_name;
|
|
|
|
typedef struct {
|
|
bool verbose;
|
|
int count;
|
|
int size;
|
|
int timeout;
|
|
int ttl;
|
|
int interval;
|
|
} ping_t;
|
|
|
|
#define DEFAULT_COUNT -1
|
|
#define DEFAULT_VERBOSE false
|
|
#define DEFAULT_SIZE 0
|
|
#define DEFAULT_INTERVAL 0
|
|
#define DEFAULT_TIMEOUT 0
|