src: Recreating face in case of face deletion by NFD
Change-Id: Idd1d0b7f521e574ace38d6f671a682622d98209d
diff --git a/src/adjacent.cpp b/src/adjacent.cpp
index ddee24f..f551686 100644
--- a/src/adjacent.cpp
+++ b/src/adjacent.cpp
@@ -43,6 +43,7 @@
, m_linkCost(DEFAULT_LINK_COST)
, m_status(ADJACENT_STATUS_INACTIVE)
, m_interestTimedOutNo(0)
+ , m_faceId(0)
{
}
@@ -52,18 +53,21 @@
, m_linkCost(DEFAULT_LINK_COST)
, m_status(ADJACENT_STATUS_INACTIVE)
, m_interestTimedOutNo(0)
+ , m_faceId(0)
{
}
Adjacent::Adjacent(const ndn::Name& an, const std::string& cfu, double lc,
- uint32_t s, uint32_t iton)
-{
- m_name = an;
- m_connectingFaceUri = cfu;
- m_linkCost = lc;
- m_status = s;
- m_interestTimedOutNo = iton;
-}
+ uint32_t s, uint32_t iton, uint64_t faceId)
+ : m_name(an)
+ , m_connectingFaceUri(cfu)
+ , m_linkCost(lc)
+ , m_status(s)
+ , m_interestTimedOutNo(iton)
+ , m_faceId(faceId)
+ {
+
+ }
bool
Adjacent::operator==(const Adjacent& adjacent) const
@@ -74,12 +78,6 @@
std::numeric_limits<double>::epsilon()) ;
}
-bool
-Adjacent::compare(const ndn::Name& adjacencyName)
-{
- return m_name == adjacencyName;
-}
-
void
Adjacent::writeLog()
{