From e05f9f880fb97c3510546a60d57b5da0b0752591 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 18 Aug 2013 02:54:54 +0200 Subject: [PATCH 1/1] Compute the checksum on outgoing Metacube packets as well. --- stream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stream.cpp b/stream.cpp index e88ad77..42edee9 100644 --- a/stream.cpp +++ b/stream.cpp @@ -226,6 +226,7 @@ void Stream::add_data_deferred(const char *data, size_t bytes, StreamStartSuitab if (suitable_for_stream_start == NOT_SUITABLE_FOR_STREAM_START) { hdr.flags |= htons(METACUBE_FLAGS_NOT_SUITABLE_FOR_STREAM_START); } + hdr.csum = htons(metacube2_compute_crc(&hdr)); iovec iov; iov.iov_base = new char[bytes + sizeof(hdr)]; -- 2.39.2