diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-04-06 16:57:37 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-04-06 16:57:37 -0700 |
commit | e9b2613d5facc5c3540eeb53be66a6becdfd347b (patch) | |
tree | 1f756447b4cf35f5e0ca3ea144d97bdcd7e8aa26 /osdep/BSDRoutingTable.hpp | |
parent | 24469a7f438a166e289dad00839e5dce631cd3e0 (diff) | |
download | infinitytier-e9b2613d5facc5c3540eeb53be66a6becdfd347b.tar.gz infinitytier-e9b2613d5facc5c3540eeb53be66a6becdfd347b.zip |
Put routing table code back in osdep/
Diffstat (limited to 'osdep/BSDRoutingTable.hpp')
-rw-r--r-- | osdep/BSDRoutingTable.hpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/osdep/BSDRoutingTable.hpp b/osdep/BSDRoutingTable.hpp index 97969666..ac0e4749 100644 --- a/osdep/BSDRoutingTable.hpp +++ b/osdep/BSDRoutingTable.hpp @@ -28,7 +28,13 @@ #ifndef ZT_BSDROUTINGTABLE_HPP #define ZT_BSDROUTINGTABLE_HPP -#include "../node/RoutingTable.hpp" +#include "../node/Constants.hpp" + +#ifdef __BSD__ + +#include <vector> + +#include "RoutingTableEntry.hpp" namespace ZeroTier { @@ -37,15 +43,18 @@ namespace ZeroTier { * * Has currently only been tested on OSX/Darwin. */ -class BSDRoutingTable : public RoutingTable +class BSDRoutingTable { public: BSDRoutingTable(); - virtual ~BSDRoutingTable(); - virtual std::vector<RoutingTable::Entry> get(bool includeLinkLocal = false,bool includeLoopback = false) const; - virtual RoutingTable::Entry set(const InetAddress &destination,const InetAddress &gateway,const char *device,int metric); + ~BSDRoutingTable(); + + std::vector<RoutingTableEntry> get(bool includeLinkLocal,bool includeLoopback) const; + RoutingTableEntry set(const InetAddress &destination,const InetAddress &gateway,const char *device,int metric); }; } // namespace ZeroTier +#endif // __BSD__ + #endif |