summaryrefslogtreecommitdiff
path: root/syncRouteCommand.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-28 17:09:06 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-28 17:09:06 +0000
commit62c4bf0fd2b504798c120284958105681f9e20f6 (patch)
treee04cbc56baf28864313da2a26eb4cb43b43fe920 /syncRouteCommand.h
parentreduced routing sync overhead (diff)
further routing fixes
Diffstat (limited to 'syncRouteCommand.h')
-rw-r--r--syncRouteCommand.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/syncRouteCommand.h b/syncRouteCommand.h
index 2e38eb4..a8e0e23 100644
--- a/syncRouteCommand.h
+++ b/syncRouteCommand.h
@@ -4,19 +4,20 @@
#include <boost/archive/text_iarchive.hpp>
#include "threadUtils.hpp"
-#include "networkAddress.h"
+#include "networkPrefix.h"
#include "routingTable.h"
class SyncRouteCommand
{
public:
- SyncRouteCommand(const NetworkAddress & );
+ SyncRouteCommand(const NetworkPrefix & );
SyncRouteCommand();
- NetworkAddress getAddr() const;
+ NetworkPrefix getPrefix() const;
private:
SyncRouteCommand(const SyncRouteCommand &);
- NetworkAddress addr_;
+ uint16_t count_;
+ NetworkPrefix addr_;
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
@@ -25,7 +26,7 @@ private:
ar & addr_;
u_int16_t & mux = gRoutingTable.getOrNewRoutingTEUnlocked(addr_);
ar & mux;
- }
+ };
};