Adding temporary solution to estimate packet size. Should be changed to
something more lightweight
diff --git a/model/ccnx-content-object-header.cc b/model/ccnx-content-object-header.cc
index ff849bc..581c6c4 100644
--- a/model/ccnx-content-object-header.cc
+++ b/model/ccnx-content-object-header.cc
@@ -64,7 +64,8 @@
CcnxContentObjectHeader::GetSerializedSize (void) const
{
// Unfortunately, two serializations are required, unless we can pre-calculate header length... which is not trivial
- Buffer tmp;
+ /// \todo This is totally wrong. Need to do some simple packet buffer estimation
+ Buffer tmp(2048);
return CcnxEncodingHelper::Serialize (tmp.Begin(), *this);
}