diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-03-31 17:53:34 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-03-31 17:53:34 -0700 |
| commit | 36eab4f1a9905e6bc128221d8e59e9f9489c291f (patch) | |
| tree | 31798569c687fa0a22f1423d722e4884012cbb6c /node/MAC.hpp | |
| parent | 647ce82b86a56c45f07cd69d5cabedd083179365 (diff) | |
| download | infinitytier-36eab4f1a9905e6bc128221d8e59e9f9489c291f.tar.gz infinitytier-36eab4f1a9905e6bc128221d8e59e9f9489c291f.zip | |
Whole heap more cleanup and refactoring...
Diffstat (limited to 'node/MAC.hpp')
| -rw-r--r-- | node/MAC.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node/MAC.hpp b/node/MAC.hpp index a01a5f3b..3981c77d 100644 --- a/node/MAC.hpp +++ b/node/MAC.hpp @@ -71,6 +71,13 @@ public: MAC(const Address &ztaddr,uint64_t nwid) throw() { fromAddress(ztaddr,nwid); } + MAC(const uint64_t m) throw() : _m(m & 0xffffffffffffULL) {} + + /** + * @return MAC in 64-bit integer + */ + inline uint64_t toInt() const throw() { return _m; } + /** * Set MAC to zero */ |
