[ndnSIM] beforeSatisfyInterest() function of forwarding strategy

Alex Afanasyev aa at CS.UCLA.EDU
Sun Dec 18 14:19:55 PST 2016


If you need to do something with FIB entry, just look it up inside your beforeSatisfyInterest implementation.  The provided API allows you to quickly find FIB, supplying the pitEntry.

---
Alex

> On Dec 5, 2016, at 10:54 PM, 任沛 <renpei.bupt at qq.com> wrote:
> 
> hello every,
>     i met some question about beforeSatisfyInterest() function, i aim at doing some opreation for fib-table, while the public API just show me as follow, i can not access the fib-table when invoke the function beforeSatisfyInterest(), what should i do if i want to add an argument like this,
> "shared_ptr< fib::Entry <http://ndnsim.net/2.1/doxygen/classnfd_1_1pit_1_1Entry.html> > 	fibEntry,", i am really appreciate i you can give me any suggestion.
> 
> origin funtion, there is three argument:
> void nfd::fw::Strategy::beforeSatisfyInterest	(	shared_ptr< pit::Entry <http://ndnsim.net/2.1/doxygen/classnfd_1_1pit_1_1Entry.html> > 	pitEntry,
> const Face <http://ndnsim.net/2.1/doxygen/classnfd_1_1Face.html> & 	inFace,
> const Data <http://ndnsim.net/2.1/doxygen/classndn_1_1Data.html> & 	data 
> 
> )
> 
> while for my work, i need this as follow, what should i do?
> void nfd::fw::Strategy::beforeSatisfyInterest	(	shared_ptr< pit::Entry <http://ndnsim.net/2.1/doxygen/classnfd_1_1pit_1_1Entry.html> > 	pitEntry,
> shared_ptr< fib::Entry <http://ndnsim.net/2.1/doxygen/classnfd_1_1pit_1_1Entry.html> > 	fibEntry,
> const Face <http://ndnsim.net/2.1/doxygen/classnfd_1_1Face.html> & 	inFace,
> const Data <http://ndnsim.net/2.1/doxygen/classndn_1_1Data.html> & 	data 
> 
> i need to access the fib-table.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161218/e5a235e9/attachment-0001.html>


More information about the ndnSIM mailing list