From 62c4bf0fd2b504798c120284958105681f9e20f6 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 28 Feb 2008 17:09:06 +0000 Subject: further routing fixes --- routingTable.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'routingTable.cpp') diff --git a/routingTable.cpp b/routingTable.cpp index a2b5f56..d51d718 100644 --- a/routingTable.cpp +++ b/routingTable.cpp @@ -102,6 +102,24 @@ u_int16_t& RoutingTable::getOrNewRoutingTEUnlocked(const NetworkAddress & addr) return it->second; } +uint16_t RoutingTable::getCountUnlocked() +{ + RoutingMap::iterator it = routes_.begin(); + uint16_t routes=0; + for (;it!=routes_.end();++it) + routes++; + return routes; +} + +RoutingMap::iterator RoutingTable::getBeginUnlocked() +{ + return routes_.begin(); +} + +RoutingMap::iterator RoutingTable::getEndUnlocked() +{ + return routes_.end(); +} void RoutingTable::clear() { -- cgit v1.2.3