The "active" bit in node.status is not used.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 11 Nov 2006 13:43:00 +0000 (13:43 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 11 Nov 2006 13:43:00 +0000 (13:43 +0000)
src/net_setup.c
src/node.h

index d03869e..4bac3f0 100644 (file)
@@ -437,7 +437,6 @@ bool setup_myself(void)
 
        myself->nexthop = myself;
        myself->via = myself;
-       myself->status.active = true;
        myself->status.reachable = true;
        node_add(myself);
 
index 2ea9692..4b3224e 100644 (file)
@@ -31,7 +31,7 @@
 
 typedef union node_status_t {
        struct {
-               int active:1;                           /* 1 if active.. */
+               int unused_active:1;                    /* 1 if active (not used for nodes) */
                int validkey:1;                         /* 1 if we currently have a valid key for him */
                int waitingforkey:1;                    /* 1 if we already sent out a request */
                int visited:1;                          /* 1 if this node has been visited by one of the graph algorithms */