summaryrefslogtreecommitdiff
path: root/routingTable.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-29 15:30:37 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-29 15:30:37 +0000
commitcc7a7761e83f762ed00df3a38cececd37a3b8170 (patch)
tree5e34610721c8044111a1e01402b37faade32b82f /routingTable.cpp
parentnetworp prefix (diff)
changed networkPrefix Constructor
Diffstat (limited to 'routingTable.cpp')
-rw-r--r--routingTable.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/routingTable.cpp b/routingTable.cpp
index d23bc4f..9db9f61 100644
--- a/routingTable.cpp
+++ b/routingTable.cpp
@@ -82,8 +82,7 @@ u_int16_t RoutingTable::getRoute(const NetworkAddress & addr)
Lock lock(mutex_);
if (routes_.empty())
return 0;
- NetworkPrefix prefix(addr);
- prefix.setNetworkPrefixLength(32);
+ NetworkPrefix prefix(addr,32);
RoutingMap::iterator it = routes_.lower_bound(prefix);
it--;
if (it!=routes_.end())