summaryrefslogtreecommitdiff
path: root/netconf-service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-12-30 16:31:59 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-12-30 16:31:59 -0800
commit83fc684b201714e0d65b166f130449f576a0b0c7 (patch)
tree8d836398d0edf902b853340d0234133baa0be4e5 /netconf-service
parentf9d31605b8285cd13ca4d9edb9ee383fa3686ab2 (diff)
downloadinfinitytier-83fc684b201714e0d65b166f130449f576a0b0c7.tar.gz
infinitytier-83fc684b201714e0d65b166f130449f576a0b0c7.zip
Add a netconf-service version field to netconf.
Diffstat (limited to 'netconf-service')
-rw-r--r--netconf-service/netconf.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/netconf-service/netconf.cpp b/netconf-service/netconf.cpp
index c016410b..9f839aee 100644
--- a/netconf-service/netconf.cpp
+++ b/netconf-service/netconf.cpp
@@ -69,6 +69,8 @@
#include <mysql++/mysql++.h>
+#include "../version.h"
+
#include "../node/Constants.hpp"
#include "../node/Dictionary.hpp"
#include "../node/Identity.hpp"
@@ -446,6 +448,8 @@ int main(int argc,char **argv)
// Assemble response dictionary to send to peer
Dictionary netconf;
+ sprintf(buf,"%d.%d.%d",ZEROTIER_ONE_VERSION_MAJOR,ZEROTIER_ONE_VERSION_MINOR,ZEROTIER_ONE_VERSION_REVISION);
+ netconf[ZT_NETWORKCONFIG_DICT_KEY_NETCONF_SERVICE_VERSION] = buf;
sprintf(buf,"%.16llx",(unsigned long long)nwid);
netconf[ZT_NETWORKCONFIG_DICT_KEY_NETWORK_ID] = buf;
netconf[ZT_NETWORKCONFIG_DICT_KEY_ISSUED_TO] = peerIdentity.address().toString();