summaryrefslogtreecommitdiff
path: root/node/MAC.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-21 16:41:35 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-21 16:41:35 -0700
commitddebe2d4c7fa4220d2cfad3693edfb15bf7a737c (patch)
treec8c4816080ffaefd39c58a87bd180898e8457710 /node/MAC.hpp
parented107c4daf9e6ccd1bc158ccdb2dbe0950aa845a (diff)
downloadinfinitytier-ddebe2d4c7fa4220d2cfad3693edfb15bf7a737c.tar.gz
infinitytier-ddebe2d4c7fa4220d2cfad3693edfb15bf7a737c.zip
Network controller CRUD... :P
Diffstat (limited to 'node/MAC.hpp')
-rw-r--r--node/MAC.hpp3
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); }