fw: localhop scope restriction in ASF strategy
refs: #3841, #1756
Change-Id: Ic82e7055ace9d3f8eca8f9bad94603692ff321d5
diff --git a/daemon/fw/asf-probing-module.cpp b/daemon/fw/asf-probing-module.cpp
index 485a3e9..f29d0e7 100644
--- a/daemon/fw/asf-probing-module.cpp
+++ b/daemon/fw/asf-probing-module.cpp
@@ -25,6 +25,7 @@
#include "asf-probing-module.hpp"
#include "core/random.hpp"
+#include "algorithm.hpp"
namespace nfd {
namespace fw {
@@ -84,8 +85,9 @@
Face& hopFace = hop.getFace();
// Don't send probe Interest back to the incoming face or use the same face
- // as the forwarded Interest
- if (hopFace.getId() == inFace.getId() || hopFace.getId() == faceUsed.getId()) {
+ // as the forwarded Interest or use a face that violates scope
+ if (hopFace.getId() == inFace.getId() || hopFace.getId() == faceUsed.getId() ||
+ wouldViolateScope(inFace, interest, hopFace)) {
continue;
}