<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">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.</div><div class=""><br class=""></div><div class="">---</div><div class="">Alex</div><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 5, 2016, at 10:54 PM, 任沛 <<a href="mailto:renpei.bupt@qq.com" class="">renpei.bupt@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">hello every,<div class="">    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,</div><table class="memname" style="font-family: "Lucida Grande", Verdana, Geneva, Arial, sans-serif; font-size: 13px; line-height: 1.3; font-weight: bold; margin-left: 6px;"><tbody class=""><tr class=""><td class="paramtype" style="white-space: nowrap; vertical-align: bottom;">"shared_ptr< fib<a class="el" href="http://ndnsim.net/2.1/doxygen/classnfd_1_1pit_1_1Entry.html" style="color: rgb(145, 165, 1); text-decoration: none;">::Entry</a> > </td><td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; vertical-align: bottom;">fibEntry,",<span style="font-weight: normal;" class=""> i am really appreciate i you can give me any suggestion.</span></td></tr></tbody></table><div class=""><br class=""></div><div class="">origin funtion, there is three argument:</div><table class="mlabels" style="font-family: "Lucida Grande", Verdana, Geneva, Arial, sans-serif; font-size: 13px; line-height: 1.3; border-spacing: 0px;"><tbody class=""><tr class=""><td class="mlabels-left" style="width: 755.455px; padding: 0px;"><table class="memname" style="font-size: 13px; line-height: 1.3; font-weight: bold; margin-left: 6px;"><tbody class=""><tr class=""><td class="memname" style="margin-left: 6px; vertical-align: bottom;">void nfd::fw::Strategy::beforeSatisfyInterest</td><td style="vertical-align: bottom;" class="">(</td><td class="paramtype" style="white-space: nowrap; vertical-align: bottom;">shared_ptr< <a class="el" href="http://ndnsim.net/2.1/doxygen/classnfd_1_1pit_1_1Entry.html" style="color: rgb(145, 165, 1); text-decoration: none;">pit::Entry</a> > </td><td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; vertical-align: bottom;">pitEntry,</td></tr><tr class=""><td class="paramkey" style="text-align: right; vertical-align: bottom;"></td><td style="vertical-align: bottom;" class=""></td><td class="paramtype" style="white-space: nowrap; vertical-align: bottom;">const <a class="el" href="http://ndnsim.net/2.1/doxygen/classnfd_1_1Face.html" style="color: rgb(145, 165, 1); text-decoration: none;">Face</a> & </td><td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; vertical-align: bottom;">inFace,</td></tr><tr class=""><td class="paramkey" style="text-align: right; vertical-align: bottom;"></td><td style="vertical-align: bottom;" class=""></td><td class="paramtype" style="white-space: nowrap; vertical-align: bottom;">const <a class="el" href="http://ndnsim.net/2.1/doxygen/classndn_1_1Data.html" style="color: rgb(145, 165, 1); text-decoration: none;">Data</a> & </td><td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; vertical-align: bottom;">data </td></tr><tr class=""><td style="vertical-align: bottom; color: rgb(50, 50, 50); background-color: rgb(232, 232, 232);" class=""><br class=""></td><td style="vertical-align: bottom; color: rgb(50, 50, 50); background-color: rgb(232, 232, 232);" class="">)<br class=""></td></tr></tbody></table></td></tr></tbody></table><br class=""><div class="">while for my work, i need this as follow, what should i do?</div><div class=""><table class="memname" style="font-family: "Lucida Grande", Verdana, Geneva, Arial, sans-serif; font-size: 13px; line-height: 1.3; font-weight: bold; margin-left: 6px;"><tbody class=""><tr class=""><td class="memname" style="margin-left: 6px; vertical-align: bottom;">void nfd::fw::Strategy::beforeSatisfyInterest</td><td style="vertical-align: bottom;" class="">(</td><td class="paramtype" style="white-space: nowrap; vertical-align: bottom;">shared_ptr< <a class="el" href="http://ndnsim.net/2.1/doxygen/classnfd_1_1pit_1_1Entry.html" style="color: rgb(145, 165, 1); text-decoration: none;">pit::Entry</a> > </td><td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; vertical-align: bottom;">pitEntry,</td></tr><tr class=""><td class="paramkey" style="text-align: right; vertical-align: bottom;"></td><td style="vertical-align: bottom;" class=""></td><td class="paramtype" style="white-space: nowrap; vertical-align: bottom;"><table class="memname" style="font-size: 13px; line-height: 1.3; font-weight: bold; margin-left: 6px;"><tbody class=""><tr class=""><td class="paramtype" style="white-space: nowrap; vertical-align: bottom;">shared_ptr< fib<a class="el" href="http://ndnsim.net/2.1/doxygen/classnfd_1_1pit_1_1Entry.html" style="color: rgb(145, 165, 1); text-decoration: none;">::Entry</a> > </td><td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; vertical-align: bottom;">fibEntry,</td></tr></tbody></table>const <a class="el" href="http://ndnsim.net/2.1/doxygen/classnfd_1_1Face.html" style="color: rgb(145, 165, 1); text-decoration: none;">Face</a> & </td><td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; vertical-align: bottom;">inFace,</td></tr><tr class=""><td class="paramkey" style="text-align: right; vertical-align: bottom;"></td><td style="vertical-align: bottom;" class=""></td><td class="paramtype" style="white-space: nowrap; vertical-align: bottom;">const <a class="el" href="http://ndnsim.net/2.1/doxygen/classndn_1_1Data.html" style="color: rgb(145, 165, 1); text-decoration: none;">Data</a> & </td><td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; vertical-align: bottom;">data </td></tr><tr class=""></tr></tbody></table><br class=""></div><div class="">i need to access the fib-table.</div></div></blockquote></div><br class=""></body></html>