From 8cc8098e08b588bbbaa0be07f9b12f7b924347b6 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Fri, 29 Feb 2008 14:52:10 +0000 Subject: fixed routing table getornew --- routingTable.cpp | 2 +- routingTable.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/routingTable.cpp b/routingTable.cpp index 8ed5697..d23bc4f 100644 --- a/routingTable.cpp +++ b/routingTable.cpp @@ -91,7 +91,7 @@ u_int16_t RoutingTable::getRoute(const NetworkAddress & addr) return 0; } -u_int16_t* RoutingTable::getOrNewRoutingTEUnlocked(const NetworkAddress & addr) +u_int16_t* RoutingTable::getOrNewRoutingTEUnlocked(const NetworkPrefix & addr) { RoutingMap::iterator it = routes_.find(addr); if(it!=routes_.end()) diff --git a/routingTable.h b/routingTable.h index 6ffd15b..b027bd8 100644 --- a/routingTable.h +++ b/routingTable.h @@ -53,7 +53,7 @@ public: bool empty(); void clear(); Mutex& getMutex(); - u_int16_t* getOrNewRoutingTEUnlocked(const NetworkAddress & addr); + u_int16_t* getOrNewRoutingTEUnlocked(const NetworkPrefix & addr); uint16_t getCountUnlocked(); RoutingMap::iterator getBeginUnlocked(); RoutingMap::iterator getEndUnlocked(); -- cgit v1.2.3