diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-05-24 00:10:23 +0000 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-05-24 00:10:23 +0000 |
commit | 4b773b61f51888f21b507bc0e70d69bfe83f2f34 (patch) | |
tree | 8c5ab94eee4730fb57a08a2f3565be9ede036502 /node | |
parent | 657f6ae342c3b6d8b55beaafad0c5e1617d7cc8d (diff) | |
download | infinitytier-4b773b61f51888f21b507bc0e70d69bfe83f2f34.tar.gz infinitytier-4b773b61f51888f21b507bc0e70d69bfe83f2f34.zip |
Netconf fixes.
Diffstat (limited to 'node')
-rw-r--r-- | node/PacketDecoder.cpp | 4 |
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(); |