summaryrefslogtreecommitdiff
path: root/src/routingTreeNode.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-12-22 18:51:03 +0000
committerChristian Pointner <equinox@anytun.org>2008-12-22 18:51:03 +0000
commit1c16c9dd9fca28260793f8b89b5fe484e541715d (patch)
tree8d95f7780fb0436264695bd6f7034d8df1514224 /src/routingTreeNode.h
parentcompiler waring fix (diff)
cleaned up routingTree structure
Diffstat (limited to 'src/routingTreeNode.h')
-rw-r--r--src/routingTreeNode.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/routingTreeNode.h b/src/routingTreeNode.h
index c09f2c9..3c2d33d 100644
--- a/src/routingTreeNode.h
+++ b/src/routingTreeNode.h
@@ -29,8 +29,8 @@
* along with anytun. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef _ROUTINGTREENODE_H
-#define _ROUTINGTREENODE_H
+#ifndef _ROUTING_TREE_NODE_H
+#define _ROUTING_TREE_NODE_H
#include "threadUtils.hpp"
@@ -38,16 +38,22 @@
#include "networkAddress.h"
#include "networkPrefix.h"
+class RoutingTree;
+
class RoutingTreeNode
{
public:
RoutingTreeNode();
~RoutingTreeNode();
+ void print(int) const;
+
+private:
+// Mutex mutex_;
u_int16_t mux_;
bool valid_;
boost::array<RoutingTreeNode *,256> nodes_;
- void print(int) const;
-private:
- Mutex mutex_;
+
+ friend class RoutingTree;
};
+
#endif