From 4b773b61f51888f21b507bc0e70d69bfe83f2f34 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Sat, 24 May 2014 00:10:23 +0000 Subject: Netconf fixes. --- node/PacketDecoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node') 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(); -- cgit v1.2.3