「🏗️」 wip: don't understand whats going on

This commit is contained in:
KeyZox committed 2025-08-16 18:53:02 +02:00
1 parent 162de73a21
commit b548965d2e
7 files changed
+61 -32

No files matched your search

+4 -2
View File
@@ -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);
+2
View File
@@ -28,3 +28,5 @@ double get_stddev_rtt(void);
bool check_for_timeout(struct timeval start, options_t opt);
void print_stats(void);
bool check_for_count(options_t opt);