summaryrefslogtreecommitdiffstats
path: root/ffd/ffd.h
diff options
context:
space:
mode:
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_ */