summaryrefslogtreecommitdiffstats
path: root/ffd/ffd.h
diff options
context:
space:
mode:
Diffstat (limited to 'ffd/ffd.h')
-rw-r--r--ffd/ffd.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/ffd/ffd.h b/ffd/ffd.h
index 81bccfc..4d70f17 100644
--- a/ffd/ffd.h
+++ b/ffd/ffd.h
@@ -33,6 +33,14 @@
#include <net/if.h>
+#define FFD_PACKET_MAX 1000
+
+#define FFD_PROTO 0xffd
+
+#define FFD_HELLO_INTERVAL 400
+#define FFD_IHU_INTERVAL (3*FFD_HELLO_INTERVAL)
+
+
typedef struct _ffd_announce_t {
struct _ffd_announce_t *next;
@@ -68,4 +76,16 @@ typedef struct _ffd_iface_t {
ffd_neigh_t *neigh_list;
} ffd_iface_t;
+
+extern const eth_addr_t ffd_addr;
+
+extern ffd_iface_t *iface_list;
+
+extern int sockfd;
+extern struct timespec now;
+
+
+void ffd_send_hellos();
+void ffd_send_announce_request(ffd_iface_t *iface, ffd_neigh_t *neigh, void *announce);
+
#endif /* _FFD_FFD_H_ */