summaryrefslogtreecommitdiffstats
path: root/ffd/ffd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-09-09 04:15:05 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-09-09 04:15:05 +0200
commitb3b606e7f3e2f8bab7c92e70e8d0e15bf06e3e3b (patch)
tree408de7c36f52f91b32963cd036d35d047848bf1c /ffd/ffd.h
parentf22dc0880f1b9348dc8c056cba0bbce223a39e62 (diff)
downloadffd-b3b606e7f3e2f8bab7c92e70e8d0e15bf06e3e3b.tar
ffd-b3b606e7f3e2f8bab7c92e70e8d0e15bf06e3e3b.zip
Implement sending of neigh announcements
Diffstat (limited to 'ffd/ffd.h')
-rw-r--r--ffd/ffd.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/ffd/ffd.h b/ffd/ffd.h
index 3f9f81c..90fefb6 100644
--- a/ffd/ffd.h
+++ b/ffd/ffd.h
@@ -40,7 +40,8 @@ typedef enum _ffd_msg_type_t {
typedef struct _ffd_msg_head_t {
struct _ffd_msg_head_t *next;
- uint16_t changed_rev;
+ /* orig rev this message was added or removed last */
+ uint64_t changed_rev;
bool deleted;
ffd_msg_type_t type;
@@ -51,10 +52,13 @@ typedef struct _ffd_msg_head_t {
typedef struct _ffd_orig_t {
struct _ffd_orig_t *next;
- uint64_t id;
+ /* neigh rev this orig has changed last */
+ uint64_t changed_rev;
+ struct timespec changed_time;
+
+ uint64_t rev;
eth_addr_t addr;
uint16_t orig_interval;
- uint16_t rev;
ffd_msg_head_t *messages;
} ffd_orig_t;
@@ -62,9 +66,8 @@ typedef struct _ffd_orig_t {
typedef struct _ffd_neigh_t {
struct _ffd_neigh_t *next;
- uint64_t id;
+ uint64_t rev;
eth_addr_t addr;
- uint16_t rev;
} ffd_neigh_t;
#endif /* _FFD_FFD_H_ */