diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-21 16:41:35 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-21 16:41:35 -0700 |
commit | ddebe2d4c7fa4220d2cfad3693edfb15bf7a737c (patch) | |
tree | c8c4816080ffaefd39c58a87bd180898e8457710 /node | |
parent | ed107c4daf9e6ccd1bc158ccdb2dbe0950aa845a (diff) | |
download | infinitytier-ddebe2d4c7fa4220d2cfad3693edfb15bf7a737c.tar.gz infinitytier-ddebe2d4c7fa4220d2cfad3693edfb15bf7a737c.zip |
Network controller CRUD... :P
Diffstat (limited to 'node')
-rw-r--r-- | node/MAC.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/node/MAC.hpp b/node/MAC.hpp index a377ddfd..442a7a2e 100644 --- a/node/MAC.hpp +++ b/node/MAC.hpp @@ -56,6 +56,9 @@ public: ((((uint64_t)e) & 0xffULL) << 8) | (((uint64_t)f) & 0xffULL) ) {} + MAC(const char *s) throw() { fromString(s); } + MAC(const std::string &s) throw() { fromString(s.c_str()); } + MAC(const void *bits,unsigned int len) throw() { setTo(bits,len); } MAC(const Address &ztaddr,uint64_t nwid) throw() { fromAddress(ztaddr,nwid); } |