<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="">Hi,<div class=""><br class=""></div><div class="">you have access to the Face table structure, where you can find the faces of a node:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/ctwolfxzd/NFD/blob/NFD-0.5.0-30-g934f505-ndnSIM/daemon/fw/forwarder.hpp#L69-L73" class="">https://github.com/ctwolfxzd/NFD/blob/NFD-0.5.0-30-g934f505-ndnSIM/daemon/fw/forwarder.hpp#L69-L73</a></div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div></div><div><blockquote type="cite" class=""><div class="">On Apr 19, 2017, at 5:58 AM, 何晓春 <<a href="mailto:hexiaochun@bupt.edu.cn" class="">hexiaochun@bupt.edu.cn</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">​<br class="webkit-block-placeholder"></div><p class="">Dear Sir/Madam,</p><p class=""><br class=""></p><p class="">I'm a <span class="short_text" id="result_box" lang="en"><span class="">senior student in China. I‘m want to extract node information to interest packet so that I can decide where to cache the data.</span></span></p><p class=""><span class="short_text" lang="en"><span class="">The information is about how many faces the node have or some other attributes defined by myself.</span></span></p><p class=""><span class="short_text" lang="en"><span class=""><br class=""></span></span></p><p class=""><span class="short_text" lang="en"><span class="">My question is where to define these attributes attached with nodes and how to get these attributes in Forwarder's function (  e.g.   Forwarder::onIncomingInterest(Face& inFace, const Interest& interest)  ).</span></span></p><p class=""><span class="short_text" lang="en"><span class=""><br class=""></span></span></p><p class=""><span class="short_text" lang="en"><span class="">Looking for your help, thank you.</span></span></p></div></blockquote></div><br class=""></div></body></html>