Now the three starting fields of the tt_local/global_entry structures are
unified. This allows to write generalised functions that operate on the
flags and refcount field.

Signed-off-by: Antonio Quartulli <[email protected]>
---
 types.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/types.h b/types.h
index 25bd1db..b32ae5a 100644
--- a/types.h
+++ b/types.h
@@ -223,20 +223,20 @@ struct socket_packet {
 
 struct tt_local_entry {
        uint8_t addr[ETH_ALEN];
-       unsigned long last_seen;
        uint16_t flags;
        atomic_t refcount;
+       unsigned long last_seen;
        struct rcu_head rcu;
        struct hlist_node hash_entry;
 };
 
 struct tt_global_entry {
        uint8_t addr[ETH_ALEN];
+       uint16_t flags; /* only TT_GLOBAL_ROAM is used */
+       atomic_t refcount;
        struct orig_node *orig_node;
        uint8_t ttvn;
-       uint16_t flags; /* only TT_GLOBAL_ROAM is used */
        unsigned long roam_at; /* time at which TT_GLOBAL_ROAM was set */
-       atomic_t refcount;
        struct rcu_head rcu;
        struct hlist_node hash_entry; /* entry in the global table */
 };
-- 
1.7.3.4

Reply via email to