Changed behavior: when a node receives an interest that cannot be
routed, instead of asserting, just failing to create PIT entry
(FailedToCreatePitEntry event will be fired)
diff --git a/model/pit/ccnx-pit-impl.cc b/model/pit/ccnx-pit-impl.cc
index 2dfd39d..9acf867 100644
--- a/model/pit/ccnx-pit-impl.cc
+++ b/model/pit/ccnx-pit-impl.cc
@@ -195,10 +195,12 @@
CcnxPitImpl::Create (Ptr<const CcnxInterestHeader> header)
{
Ptr<CcnxFibEntry> fibEntry = m_fib->LongestPrefixMatch (*header);
- NS_ASSERT_MSG (fibEntry != 0,
- "There should be at least default route set" <<
- " Prefix = "<< header->GetName() << "NodeID == " << m_fib->GetObject<Node>()->GetId() << "\n" << *m_fib);
-
+ if (fibEntry == 0)
+ return 0;
+
+ // NS_ASSERT_MSG (fibEntry != 0,
+ // "There should be at least default route set" <<
+ // " Prefix = "<< header->GetName() << ", NodeID == " << m_fib->GetObject<Node>()->GetId() << "\n" << *m_fib);
Ptr< entry > newEntry = ns3::Create< entry > (boost::ref (*this), header, fibEntry);
std::pair< super::iterator, bool > result = super::insert (header->GetName (), newEntry);