From dd37bc54dae219e4d1975f014ec36c221ec4db20 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Mon, 22 Dec 2008 01:38:19 +0000 Subject: new routing system supports ipv4 and ipv6 routing with subnetting --- src/routingTable.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/routingTable.h') diff --git a/src/routingTable.h b/src/routingTable.h index e73deea..85de0fa 100644 --- a/src/routingTable.h +++ b/src/routingTable.h @@ -39,6 +39,8 @@ #include "datatypes.h" #include "networkAddress.h" #include "networkPrefix.h" +#include "routingTreeNode.h" +#include "boost/array.hpp" typedef std::map RoutingMap; class RoutingTable @@ -48,6 +50,7 @@ public: RoutingTable(); ~RoutingTable(); void addRoute(const NetworkPrefix & ,u_int16_t); + void updateRouteTree(const NetworkPrefix & pref); void delRoute(const NetworkPrefix & ); u_int16_t getRoute(const NetworkAddress &); bool empty(network_address_type_t type); @@ -69,7 +72,8 @@ private: }; RoutingTable(const RoutingTable &s); void operator=(const RoutingTable &s); - RoutingMap routes_[3]; + boost::array routes_; + boost::array root_; Mutex mutex_; }; -- cgit v1.2.3