interest+data: Add incomingFaceId into Interest and Data.
Change-Id: I872b578d1411d62deb5753cd4f5294849c5e4995
diff --git a/src/data.hpp b/src/data.hpp
index 29a38d6..dc6d9f0 100644
--- a/src/data.hpp
+++ b/src/data.hpp
@@ -127,6 +127,12 @@
inline void
setSignatureValue(const Block &value);
+
+ inline uint64_t
+ getIncomingFaceId() const;
+
+ inline void
+ setIncomingFaceId(uint64_t incomingFaceId);
private:
/**
@@ -142,6 +148,8 @@
Signature signature_;
mutable Block wire_;
+
+ uint64_t m_incomingFaceId;
};
inline
@@ -272,6 +280,17 @@
signature_.setValue(value);
}
+inline uint64_t
+Data::getIncomingFaceId() const
+{
+ return m_incomingFaceId;
+}
+
+inline void
+Data::setIncomingFaceId(uint64_t incomingFaceId)
+{
+ m_incomingFaceId = incomingFaceId;
+}
inline void
Data::onChanged()