aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/hicn/transport/protocols/reassembly.h
diff options
context:
space:
mode:
authorOlivier Roques <oroques+fdio@cisco.com>2019-12-09 20:12:07 +0100
committerOlivier Roques <oroques+fdio@cisco.com>2020-02-04 15:48:14 +0100
commite1cc8df89a953871b3d76f55f82ebb03b86b8eb5 (patch)
tree9c7b66c1eead036a17d3d46323ea19023a4fb152 /libtransport/src/hicn/transport/protocols/reassembly.h
parente90a3ec9cbc98d73dfeb2175ee12edfb56af11ee (diff)
[HICN-501] Change calculation of next reassembly segment when manifests are enabled
When manifests are enabled, the current way of computing the next reassembly segment is broken: if manifests are received out of order, which can happen if a interest for a manifest timeouts, reassembly will also be out of order. This patch makes uses of the SuffixContent class introduced in HICN-392 to correctly compute the index of the next segment to reassemble. Change-Id: I2784f3da544fef7b48a110dd6c233657610f44b8 Signed-off-by: Olivier Roques <oroques+fdio@cisco.com>
Diffstat (limited to 'libtransport/src/hicn/transport/protocols/reassembly.h')
-rw-r--r--libtransport/src/hicn/transport/protocols/reassembly.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/protocols/reassembly.h b/libtransport/src/hicn/transport/protocols/reassembly.h
index b83aba20e..e859ca294 100644
--- a/libtransport/src/hicn/transport/protocols/reassembly.h
+++ b/libtransport/src/hicn/transport/protocols/reassembly.h
@@ -70,7 +70,7 @@ class BaseReassembly : public Reassembly {
IndexVerificationManager *index_manager_;
std::unordered_map<std::uint32_t, ContentObject::Ptr> received_packets_;
- uint64_t index_;
+ uint32_t index_;
std::unique_ptr<utils::MemBuf> read_buffer_;
};