summaryrefslogtreecommitdiff
path: root/service/ControlPlane.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-15 15:46:57 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-15 15:46:57 -0700
commit3c655a4b8479a8c4a332cc4f36315c7841da34e7 (patch)
tree736d6ead0823576a1aab48743487d710ff0e9fda /service/ControlPlane.cpp
parentb90e66f7c7546aaf9c0c8a6bf14cc834f82fa680 (diff)
downloadinfinitytier-3c655a4b8479a8c4a332cc4f36315c7841da34e7.tar.gz
infinitytier-3c655a4b8479a8c4a332cc4f36315c7841da34e7.zip
Default route ready to test on Mac.
Diffstat (limited to 'service/ControlPlane.cpp')
-rw-r--r--service/ControlPlane.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/service/ControlPlane.cpp b/service/ControlPlane.cpp
index accbfa35..525327e9 100644
--- a/service/ControlPlane.cpp
+++ b/service/ControlPlane.cpp
@@ -59,28 +59,6 @@ static std::string _jsonEscape(const char *s)
}
static std::string _jsonEscape(const std::string &s) { return _jsonEscape(s.c_str()); }
-static std::string _jsonEnumerate(const ZT_MulticastGroup *mg,unsigned int count)
-{
- std::string buf;
- char tmp[128];
- buf.push_back('[');
- for(unsigned int i=0;i<count;++i) {
- if (i > 0)
- buf.push_back(',');
- Utils::snprintf(tmp,sizeof(tmp),"\"%.2x:%.2x:%.2x:%.2x:%.2x:%.2x\\/%.8lx\"",
- (unsigned int)((mg[i].mac >> 40) & 0xff),
- (unsigned int)((mg[i].mac >> 32) & 0xff),
- (unsigned int)((mg[i].mac >> 24) & 0xff),
- (unsigned int)((mg[i].mac >> 16) & 0xff),
- (unsigned int)((mg[i].mac >> 8) & 0xff),
- (unsigned int)(mg[i].mac & 0xff),
- (unsigned long)(mg[i].adi));
- buf.append(tmp);
- }
- buf.push_back(']');
- return buf;
-}
-
static std::string _jsonEnumerate(const struct sockaddr_storage *ss,unsigned int count)
{
std::string buf;