summaryrefslogtreecommitdiff
path: root/src/routingTable.h
diff options
context:
space:
mode:
authorMarkus Grüneis <gimpf@gimpf.org>2010-02-18 09:15:27 +0000
committerMarkus Grüneis <gimpf@gimpf.org>2010-02-18 09:15:27 +0000
commite191eab68d905bfe14e3590a92fa653f0ae2ebce (patch)
treea5837b067ecab92c645008b537087b0d163ef1ab /src/routingTable.h
parentwhitespace only change: unified formatting with "astyle --style=k/r --indent=... (diff)
non-functional changes only: use standard writing of stdint.h types; still import from boost (compiler compatibility)
Diffstat (limited to 'src/routingTable.h')
-rw-r--r--src/routingTable.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/routingTable.h b/src/routingTable.h
index 8fb1f64..48e7617 100644
--- a/src/routingTable.h
+++ b/src/routingTable.h
@@ -42,7 +42,7 @@
#include "networkPrefix.h"
#include "routingTreeNode.h"
#include "boost/array.hpp"
-typedef std::map<NetworkPrefix,u_int16_t> RoutingMap;
+typedef std::map<NetworkPrefix,uint16_t> RoutingMap;
class RoutingTable
{
@@ -50,15 +50,15 @@ public:
static RoutingTable& instance();
RoutingTable();
~RoutingTable();
- void addRoute(const NetworkPrefix& ,u_int16_t);
+ void addRoute(const NetworkPrefix& ,uint16_t);
void updateRouteTreeUnlocked(const NetworkPrefix& pref);
void delRoute(const NetworkPrefix&);
- u_int16_t getRoute(const NetworkAddress&);
+ uint16_t getRoute(const NetworkAddress&);
bool empty(network_address_type_t type);
void clear(network_address_type_t type);
Mutex& getMutex();
- u_int16_t* getOrNewRoutingTEUnlocked(const NetworkPrefix& addr);
- u_int16_t getCountUnlocked(network_address_type_t type);
+ uint16_t* getOrNewRoutingTEUnlocked(const NetworkPrefix& addr);
+ uint16_t getCountUnlocked(network_address_type_t type);
RoutingMap::iterator getBeginUnlocked(network_address_type_t type);
RoutingMap::iterator getEndUnlocked(network_address_type_t type);