model: Another set of refactoring/renaming to make code compile (not tested yet)
Refs #1005 (http://redmine.named-data.net/)
diff --git a/model/fw/nacks.cc b/model/fw/nacks.cc
index 357427c..bda2582 100644
--- a/model/fw/nacks.cc
+++ b/model/fw/nacks.cc
@@ -78,7 +78,7 @@
Ptr<Interest> interest)
{
if (interest->GetNack () > 0)
- OnNack (inFace, header);
+ OnNack (inFace, interest);
else
super::OnInterest (inFace, interest);
}
@@ -87,10 +87,10 @@
Nacks::OnNack (Ptr<Face> inFace,
Ptr<Interest> nack)
{
- // NS_LOG_FUNCTION (inFace << header->GetName ());
+ // NS_LOG_FUNCTION (inFace << nack->GetName ());
m_inNacks (nack, inFace);
- Ptr<pit::Entry> pitEntry = m_pit->Lookup (*header);
+ Ptr<pit::Entry> pitEntry = m_pit->Lookup (*nack);
if (pitEntry == 0)
{
// somebody is doing something bad
@@ -98,7 +98,7 @@
return;
}
- DidReceiveValidNack (inFace, header->GetNack (), nack, pitEntry);
+ DidReceiveValidNack (inFace, nack->GetNack (), nack, pitEntry);
}
void
@@ -136,7 +136,7 @@
{
if (m_nacksEnabled)
{
- Ptr<Interest> nack = Create<Interest> (*header);
+ Ptr<Interest> nack = Create<Interest> (*interest);
nack->SetNack (Interest::NACK_GIVEUP_PIT);
FwHopCountTag hopCountTag;
@@ -159,7 +159,7 @@
pitEntry->ClearOutgoing (); // to force erasure of the record
}
- super::DidExhaustForwardingOptions (inFace, header, origPacket, pitEntry);
+ super::DidExhaustForwardingOptions (inFace, interest, pitEntry);
}
void
diff --git a/model/fw/ndn-forwarding-strategy.cc b/model/fw/ndn-forwarding-strategy.cc
index ef61593..df417dd 100644
--- a/model/fw/ndn-forwarding-strategy.cc
+++ b/model/fw/ndn-forwarding-strategy.cc
@@ -261,10 +261,10 @@
WillSatisfyPendingInterest (inFace, pitEntry);
// Actually satisfy pending interest
- SatisfyPendingInterest (inFace, header, payload, pitEntry);
+ SatisfyPendingInterest (inFace, data, pitEntry);
// Lookup another PIT entry
- pitEntry = m_pit->Lookup (*header);
+ pitEntry = m_pit->Lookup (*data);
}
}