Project

General

Profile

Actions

Task #3407

closed

Replace hardcoded values in ndn-cxx by MAX_NDN_PACKET_SIZE

Added by susmit shannigrahi almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Base
Target version:
Start date:
01/12/2016
Due date:
% Done:

100%

Estimated time:

Description

ndn-cxx uses 8800 instead of MAX_NDN_PACKET_SIZE at various places.

src/encoding/encoder.hpp: Encoder(size_t totalReserve = 8800, size_t reserveFromBack = 400);
src/encoding/encoder.cpp:Encoder::Encoder(size_t totalReserve/* = 8800*/, size_t reserveFromBack/* = 400*/)
src/encoding/tlv.hpp:const size_t MAX_NDN_PACKET_SIZE = 8800;
src/encoding/encoding-buffer.hpp: EncodingImpl(size_t totalReserve = 8800, size_t reserveFromBack = 400)
src/encoding/block.cpp:const size_t MAX_SIZE_OF_BLOCK_FROM_STREAM = 8800;

Actions

Also available in: Atom PDF