tests: DummyStrategy forwards specific Interest

refs #1756

Change-Id: I252364ef75f5a74e61828e35385c272b1a8b4581
This commit is contained in:
Junxiao Shi committed 2016-11-22 14:22:25 +00:00
1 parent 6c13562d23
commit a6350d9395
1 file changed
+3 -3
+3 -3
View File
@@ -49,7 +49,7 @@ public:
/** \brief after receive Interest trigger
*
* If \p interestOutFace is not null, send Interest action is invoked with that face;
* If \p interestOutFace is not null, Interest is forwarded to that face via send Interest action;
* otherwise, reject pending Interest action is invoked.
*/
virtual void
@@ -58,8 +58,8 @@ public:
{
++afterReceiveInterest_count;
if (interestOutFace) {
this->sendInterest(pitEntry, *interestOutFace);
if (interestOutFace != nullptr) {
this->sendInterest(pitEntry, *interestOutFace, interest);
}
else {
this->rejectPendingInterest(pitEntry);