fw: additional unsolicited Data policies
refs #2181
Change-Id: I439a77f8f48ad194459dc2391cd0ad8d0860b83e
diff --git a/daemon/fw/unsolicited-data-policy.hpp b/daemon/fw/unsolicited-data-policy.hpp
index 54112ec..2cbad2a 100644
--- a/daemon/fw/unsolicited-data-policy.hpp
+++ b/daemon/fw/unsolicited-data-policy.hpp
@@ -56,6 +56,15 @@
decide(const Face& inFace, const Data& data) const = 0;
};
+/** \brief drops all unsolicited Data
+ */
+class DropAllUnsolicitedDataPolicy : public UnsolicitedDataPolicy
+{
+public:
+ virtual UnsolicitedDataDecision
+ decide(const Face& inFace, const Data& data) const final;
+};
+
/** \brief admits unsolicited Data from local faces
*/
class AdmitLocalUnsolicitedDataPolicy : public UnsolicitedDataPolicy
@@ -65,6 +74,24 @@
decide(const Face& inFace, const Data& data) const final;
};
+/** \brief admits unsolicited Data from non-local faces
+ */
+class AdmitNetworkUnsolicitedDataPolicy : public UnsolicitedDataPolicy
+{
+public:
+ virtual UnsolicitedDataDecision
+ decide(const Face& inFace, const Data& data) const final;
+};
+
+/** \brief admits all unsolicited Data
+ */
+class AdmitAllUnsolicitedDataPolicy : public UnsolicitedDataPolicy
+{
+public:
+ virtual UnsolicitedDataDecision
+ decide(const Face& inFace, const Data& data) const final;
+};
+
} // namespace fw
} // namespace nfd