「🏗️」 wip: don't understand whats going on
This commit is contained in:
@ -15,6 +15,7 @@ extern int tx_count;
|
||||
extern int rx_count;
|
||||
extern char *address;
|
||||
extern double *times;
|
||||
extern int sock;
|
||||
|
||||
typedef struct {
|
||||
bool verbose;
|
||||
@ -34,14 +35,15 @@ typedef struct {
|
||||
#define DEFAULT_COUNT -1
|
||||
#define DEFAULT_LINGER 10
|
||||
|
||||
int send_ping(int socket, struct sockaddr_in *dest, args_t *args);
|
||||
int init_socket(args_t *args);
|
||||
int send_ping(int socket, struct sockaddr_in *dest, options_t opt);
|
||||
int init_socket(options_t opt);
|
||||
void init_packet(char *buf, int seq, uint32_t size);
|
||||
int send_icmp(int socket, char *buf, struct sockaddr_in *addr, uint32_t size);
|
||||
int receive_icmp(int socket, char *buf, uint32_t size,
|
||||
struct sockaddr_in *addr);
|
||||
void process_icmp(char *buf, int bytes, struct sockaddr_in *addr, int seq,
|
||||
struct timeval *tv_start, struct timeval *tv_end);
|
||||
int ping(args_t *args);
|
||||
|
||||
// Internal
|
||||
unsigned short get_checksum(unsigned short *addr, int count);
|
||||
|
Reference in New Issue
Block a user