diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-07-06 15:51:04 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-07-06 15:51:04 -0700 |
| commit | 235f4762b700174c795b28de7d4fe2f70cddbcd8 (patch) | |
| tree | 2acca7f20487cf20eac76466debdfa60424128da /node/RemotePath.hpp | |
| parent | 79e9a8bcc26491a43577082ec7edb86020f7ec00 (diff) | |
| download | infinitytier-235f4762b700174c795b28de7d4fe2f70cddbcd8.tar.gz infinitytier-235f4762b700174c795b28de7d4fe2f70cddbcd8.zip | |
Plumbing for local interface addresses -- GitHub issue #180
Diffstat (limited to 'node/RemotePath.hpp')
| -rw-r--r-- | node/RemotePath.hpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/node/RemotePath.hpp b/node/RemotePath.hpp index 47c8916d..5592c8e1 100644 --- a/node/RemotePath.hpp +++ b/node/RemotePath.hpp @@ -52,18 +52,25 @@ public: RemotePath() : Path(), _lastSend(0), - _lastReceived(0) {} + _lastReceived(0), + _fixed(false) {} RemotePath(const InetAddress &addr,bool fixed) : - Path(addr,0,TRUST_NORMAL,false,fixed), + Path(addr,0,TRUST_NORMAL,false), _lastSend(0), - _lastReceived(0) {} + _lastReceived(0), + _fixed(fixed) {} inline uint64_t lastSend() const throw() { return _lastSend; } inline uint64_t lastReceived() const throw() { return _lastReceived; } /** - * @param f New value of parent 'fixed' field + * @return Is this a fixed path? + */ + inline bool fixed() const throw() { return _fixed; } + + /** + * @param f New value of fixed flag */ inline void setFixed(const bool f) throw() @@ -127,6 +134,7 @@ public: private: uint64_t _lastSend; uint64_t _lastReceived; + bool _fixed; }; } // namespace ZeroTier |
