summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-05-24 00:10:23 +0000
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-05-24 00:10:23 +0000
commit4b773b61f51888f21b507bc0e70d69bfe83f2f34 (patch)
tree8c5ab94eee4730fb57a08a2f3565be9ede036502 /node
parent657f6ae342c3b6d8b55beaafad0c5e1617d7cc8d (diff)
downloadinfinitytier-4b773b61f51888f21b507bc0e70d69bfe83f2f34.tar.gz
infinitytier-4b773b61f51888f21b507bc0e70d69bfe83f2f34.zip
Netconf fixes.
Diffstat (limited to 'node')
-rw-r--r--node/PacketDecoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/PacketDecoder.cpp b/node/PacketDecoder.cpp
index 9fbc10bf..b1b37160 100644
--- a/node/PacketDecoder.cpp
+++ b/node/PacketDecoder.cpp
@@ -898,9 +898,9 @@ bool PacketDecoder::_doNETWORK_CONFIG_REQUEST(const RuntimeEnvironment *_r,const
request["meta"] = std::string((const char *)field(ZT_PROTO_VERB_NETWORK_CONFIG_REQUEST_IDX_DICT,dictLen),dictLen);
request["type"] = "netconf-request";
request["peerId"] = peer->identity().toString(false);
- Utils::snprintf(tmp,sizeof(tmp),"%llx",(unsigned long long)nwid);
+ Utils::snprintf(tmp,sizeof(tmp),"%.16llx",(unsigned long long)nwid);
request["nwid"] = tmp;
- Utils::snprintf(tmp,sizeof(tmp),"%llx",(unsigned long long)packetId());
+ Utils::snprintf(tmp,sizeof(tmp),"%.16llx",(unsigned long long)packetId());
request["requestId"] = tmp;
if (!hops())
request["from"] = _remoteAddress.toString();