summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-29 14:52:10 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-29 14:52:10 +0000
commit8cc8098e08b588bbbaa0be07f9b12f7b924347b6 (patch)
tree0e0b11a5519cc185a4e5821963b417a4eac7b5fe
parentroute (diff)
fixed routing table getornew
-rw-r--r--routingTable.cpp2
-rw-r--r--routingTable.h2
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();