summaryrefslogtreecommitdiff
path: root/node/MAC.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-18 11:01:41 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-18 11:01:41 -0400
commitb10871cedcdaa6f18779fcebcc889cdd35df546b (patch)
tree4d36574c7e4f392c640256fdcd3a0a8e4d130d3d /node/MAC.hpp
parent9f107dbd4eefdb4e5427f15e844aefbd573a6465 (diff)
downloadinfinitytier-b10871cedcdaa6f18779fcebcc889cdd35df546b.tar.gz
infinitytier-b10871cedcdaa6f18779fcebcc889cdd35df546b.zip
More work in netconf cleanup.
Diffstat (limited to 'node/MAC.hpp')
-rw-r--r--node/MAC.hpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/node/MAC.hpp b/node/MAC.hpp
index 9765aa59..b1864511 100644
--- a/node/MAC.hpp
+++ b/node/MAC.hpp
@@ -135,17 +135,9 @@ public:
* @param s String hex representation (with or without :'s)
* @return True if string decoded into a full-length MAC
*/
- inline bool fromString(const char *s)
+ inline void fromString(const char *s)
{
- std::string b(Utils::unhex(s));
- if (b.length() == 6) {
- for(unsigned int i=0;i<6;++i)
- data[i] = (unsigned char)b[i];
- return true;
- }
- for(unsigned int i=0;i<6;++i)
- data[i] = 0;
- return false;
+ Utils::unhex(s,data,6);
}
inline std::string toString() const