Adding temporary solution to estimate packet size. Should be changed to
something more lightweight
diff --git a/model/ccnx-interest-header.cc b/model/ccnx-interest-header.cc
index ea70a93..ee9f63b 100644
--- a/model/ccnx-interest-header.cc
+++ b/model/ccnx-interest-header.cc
@@ -171,7 +171,8 @@
CcnxInterestHeader::GetSerializedSize (void) const
{
// unfortunately, 2 serialization required...
- Buffer tmp;
+ /// \todo This is totally wrong. Need to do some simple packet buffer estimation
+ Buffer tmp(2048);
return CcnxEncodingHelper::Serialize (tmp.Begin(), *this);
}