fw: /localhost scope control for incoming Interest
refs #1230
Change-Id: I86fd071ef144caa506b26a723f14232e2af5e2de
diff --git a/daemon/face/face.cpp b/daemon/face/face.cpp
index d0bde55..b32b57a 100644
--- a/daemon/face/face.cpp
+++ b/daemon/face/face.cpp
@@ -49,6 +49,12 @@
}
bool
+Face::isLocal() const
+{
+ return false;
+}
+
+bool
Face::isMultiAccess() const
{
return false;
diff --git a/daemon/face/face.hpp b/daemon/face/face.hpp
index e2aa62d..58cccf6 100644
--- a/daemon/face/face.hpp
+++ b/daemon/face/face.hpp
@@ -69,13 +69,15 @@
virtual void
close() = 0;
- /** \brief Get whether underlying communicate is up
+ /** \brief Get whether underlying communication is up
+ *
* In this base class this property is always true.
*/
virtual bool
isUp() const;
/** \brief Set the description
+ *
* This is typically invoked by mgmt on set description command
*/
virtual void
@@ -84,8 +86,16 @@
/// Get the description
virtual const std::string&
getDescription() const;
+
+ /** \brief Get whether face is connected to a local app
+ *
+ * In this base class this property is always false.
+ */
+ virtual bool
+ isLocal() const;
/** \brief Get whether packets sent this Face may reach multiple peers
+ *
* In this base class this property is always false.
*/
virtual bool
@@ -95,13 +105,6 @@
virtual bool
isLocalControlHeaderEnabled() const;
-protected:
- // void
- // receiveInterest();
-
- // void
- // receiveData();
-
private:
void
setId(FaceId faceId);