summaryrefslogtreecommitdiff
path: root/node/Network.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-27 15:55:32 -0400
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-27 15:55:32 -0400
commitcd907a76626538a831e8fc90806aecfe07f47582 (patch)
treeb509368187bae6506934f82ca91a07747737e3ed /node/Network.hpp
parent1c88a518cfd9783f70659dc1f578f1f73ae49561 (diff)
downloadinfinitytier-cd907a76626538a831e8fc90806aecfe07f47582.tar.gz
infinitytier-cd907a76626538a831e8fc90806aecfe07f47582.zip
More tap work -- DHCP configuration and such.
Diffstat (limited to 'node/Network.hpp')
-rw-r--r--node/Network.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/node/Network.hpp b/node/Network.hpp
index f263cd5d..f692c168 100644
--- a/node/Network.hpp
+++ b/node/Network.hpp
@@ -233,6 +233,15 @@ public:
#endif
}
+ inline std::string name() const
+ {
+ if (contains("name"))
+ return get("name");
+ char buf[32];
+ sprintf(buf,"%.16llx",(unsigned long long)networkId());
+ return std::string(buf);
+ }
+
inline Address peerAddress() const
throw(std::invalid_argument)
{