<div dir="ltr">Hi Sabet<div><br></div><div>I'm doing refactoring these days, and devguide isn't updated yet.</div><div>In short, FIB lookup, including handling Link objects, is in Forwarder::lookupFib method but it's invoked by the strategy instead of pipelines.</div><div>See <a href="https://redmine.named-data.net/issues/3664#note-4">https://redmine.named-data.net/issues/3664#note-4</a></div><div><br></div><div>Yours, Junxiao</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 25, 2016 at 1:39 AM, Muhammad Hosain Abdollahi Sabet <span dir="ltr"><<a href="mailto:mhasabet@gmail.com" target="_blank">mhasabet@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font face="tahoma, sans-serif"><div style="font-family:tahoma,sans-serif;display:inline">Hi there,<br></div><div style="font-family:tahoma,sans-serif;display:inline">According to developer guide, section 4.2.3 ContentStore Miss Pipeline<br><br><img alt="Inline image 1" src="cid:ii_156212ab2b7f1149" height="299" width="533"><br><br></div><div style="font-family:tahoma,sans-serif;display:inline">there should be some checkings on if incoming Interest has Link object, so to decide on how to forward the Interest. But in daemon/fw/forwarder.cpp there is no such checks in Forwarder::onContentStoreMiss:<br><br><div style="margin-left:40px">void<br>Forwarder::onContentStoreMiss(const Face& inFace,<br> shared_ptr<pit::Entry> pitEntry,<br> const Interest& interest)<br>{<br> NFD_LOG_DEBUG("onContentStoreMiss interest=" << interest.getName());<br><br> shared_ptr<Face> face = const_pointer_cast<Face>(inFace.shared_from_this());<br> // insert InRecord<br> pitEntry->insertOrUpdateInRecord(face, interest);<br><br> // set PIT unsatisfy timer<br> this->setUnsatisfyTimer(pitEntry);<br><br> // FIB lookup<br> shared_ptr<fib::Entry> fibEntry = m_fib.findLongestPrefixMatch(*pitEntry);<br><br> // dispatch to strategy<br> this->dispatchToStrategy(pitEntry, bind(&Strategy::afterReceiveInterest, _1,<br> cref(inFace), cref(interest), fibEntry, pitEntry));<br>}<br></div><br> Am I missing something?<br><br></div><div style="font-family:tahoma,sans-serif;display:inline">Actually I was wondering why setting Link object doesn't affect forwarding decisions in ndnSIM. I guess this the reason, right?<br><br></div><div style="font-family:tahoma,sans-serif;display:inline">Thanks,<br></div><div style="font-family:tahoma,sans-serif;display:inline">Sabet<br></div></font><font face="tahoma, sans-serif"></font></div>
<br>_______________________________________________<br>
Nfd-dev mailing list<br>
<a href="mailto:Nfd-dev@lists.cs.ucla.edu">Nfd-dev@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a><br>
<br></blockquote></div><br></div></div>