Small corrections and python bindings rescan
diff --git a/model/forwarding-strategy/green-yellow-red.cc b/model/forwarding-strategy/green-yellow-red.cc
index f945bbe..e3d4322 100644
--- a/model/forwarding-strategy/green-yellow-red.cc
+++ b/model/forwarding-strategy/green-yellow-red.cc
@@ -58,7 +58,7 @@
{
static TypeId tid = TypeId ("ns3::ndnSIM::GreenYellowRed")
.SetGroupName ("Ccnx")
- .SetParent<CcnxForwardingStrategy> ()
+ .SetParent<Nacks> ()
;
return tid;
@@ -126,5 +126,19 @@
super::WillSatisfyPendingInterest (incomingFace, pitEntry);
}
+void
+GreenYellowRed::DidReceiveValidNack (const Ptr<CcnxFace> &incomingFace,
+ uint32_t nackCode,
+ Ptr<CcnxPitEntry> pitEntry)
+{
+ super::DidReceiveValidNack (incomingFace, nackCode, pitEntry);
+
+ if (nackCode != CcnxInterestHeader::NACK_LOOP)
+ {
+ pitEntry->GetFibEntry ()->UpdateStatus (incomingFace, CcnxFibFaceMetric::NDN_FIB_YELLOW);
+ }
+}
+
+
} // namespace ndnSIM
} // namespace ns3