RPC commands were not really zipped (used a padded length)
authorimarom <[email protected]>
Thu, 28 Jul 2016 13:20:37 +0000 (16:20 +0300)
committerimarom <[email protected]>
Thu, 28 Jul 2016 13:20:37 +0000 (16:20 +0300)
https://trex-tgn.cisco.com/youtrack/issue/trex-233

src/rpc-server/trex_rpc_zip.cpp

index ef5c483..f6da00e 100644 (file)
@@ -116,7 +116,7 @@ TrexRpcZip::compress(const std::string &input, std::string &output) {
     header->magic      = htonl(G_HEADER_MAGIC);
     header->uncmp_size = htonl(input.size());
     
-    output.append((const char *)header, bound_size);
+    output.append((const char *)header, sizeof(header_st) + destLen);
 
     delete [] buffer;