Serialization for Nack and Congestion fields was added
diff --git a/helper/ccnx-encoding-helper.cc b/helper/ccnx-encoding-helper.cc
index 7595bc8..49b0200 100644
--- a/helper/ccnx-encoding-helper.cc
+++ b/helper/ccnx-encoding-helper.cc
@@ -149,6 +149,19 @@
{
written += EstimateTaggedBlob (CcnbParser::CCN_DTAG_Nonce, sizeof(uint32_t));
}
+ if (interest.IsNack () )
+ {
+ written += EstimateBlockHeader (CcnbParser::NDN_DTAG_Nack);
+ written += EstimateNumber (1);
+ written += 1;
+ }
+ if (interest.IsCongested () )
+ {
+ written += EstimateBlockHeader (CcnbParser::NDN_DTAG_Congested);
+ written += EstimateNumber (1);
+ written += 1;
+ }
+
written += 1; // </Interest>
return written;