path stretch support
diff --git a/model/ccnx-bestroute-strategy.cc b/model/ccnx-bestroute-strategy.cc
index 2bbe287..4bb8199 100644
--- a/model/ccnx-bestroute-strategy.cc
+++ b/model/ccnx-bestroute-strategy.cc
@@ -62,6 +62,8 @@
{
NS_LOG_FUNCTION (this);
+
+
// Try to work out with just green faces
bool greenOk = PropagateInterestViaGreen (pitEntry, incomingFace, header, packet);
if (greenOk)
@@ -99,6 +101,14 @@
m_pit->modify (m_pit->iterator_to (pitEntry),
ll::bind(&CcnxPitEntry::AddOutgoing, ll::_1, metricFace.m_face));
+ //update path stretch
+ WeightsPathStretchTag pathStretch;
+ //packet->PeekPacketTag(pathStretch);
+
+ pathStretch.AddNewHop(metricFace.m_routingCost);
+ packet->AddPacketTag(pathStretch);
+
+ //transmission
metricFace.m_face->Send (packet->Copy ());
m_transmittedInterestsTrace (header, metricFace.m_face);