From 2d526a3651f6e789f99b8e4c1c1583b39869972a Mon Sep 17 00:00:00 2001 From: Lucas Castro Date: Thu, 11 Jan 2024 12:07:59 -0300 Subject: New upstream version 1.0.8 --- foolsm.h | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 foolsm.h (limited to 'foolsm.h') diff --git a/foolsm.h b/foolsm.h new file mode 100644 index 0000000..4a50ad9 --- /dev/null +++ b/foolsm.h @@ -0,0 +1,72 @@ +/* + +(C) 2013 Mika Ilmaranta + +License: GPLv2 + +*/ + +#ifndef __FOOLSM_H__ +#define __FOOLSM_H__ + +#include /* for struct sockaddr_in */ +#include /* for struct sockadd_ll */ +#include /* for struct icmp6_filter */ + +#include "defs.h" + +typedef struct sentpkt { + unsigned short seq; + struct timeval sent_time; + struct timeval replied_time; + unsigned long rtt; + struct { + unsigned replied:1; + unsigned timeout:1; + unsigned waiting:1; + unsigned used:1; + unsigned error:1; + } flags; +} SENTPKT; + +typedef struct target { + unsigned short id; /* target id */ + unsigned short seq; + unsigned short downseq; + unsigned short downseqreported; + struct timeval down_timestamp; + struct sockaddr_in src_addr; + struct sockaddr_in dst_addr; + struct sockaddr_in6 src_addr6; + struct sockaddr_in6 dst_addr6; + struct sockaddr_ll me; /* arping only */ + struct sockaddr_ll he; /* arping only */ + struct in_addr src; + struct in_addr dst; + struct in6_addr src6; + struct in6_addr dst6; + unsigned long num_sent; + struct timeval last_send_time; + STATUS status; + int sock; + unsigned char cmsgbuf[4096]; + int cmsglen; + struct icmp6_filter filter; + SENTPKT sentpkts[FOLLOWED_PKTS]; + int timeout; + int timeout_max; + int replied; + int waiting; + int reply_late; + int used; + int consecutive_waiting; + int consecutive_missing; + int consecutive_missing_max; + int consecutive_rcvd; + long avg_rtt; + int status_change; +} TARGET; + +#endif + +/* EOF */ -- cgit v1.2.3