<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="">since the latest version of ndnSIM (v2.3), we do not use the NS3 packet tags for the hop count, but we rather use the LP tags implemented for the NDN Link Protocol (NDNLP):</div><div class=""><br class=""></div><div class=""><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/apps/ndn-consumer.cpp#L227-L232" class="">https://github.com/named-data-ndnSIM/ndnSIM/blob/master/apps/ndn-consumer.cpp#L227-L232</a></div><div class=""><br class=""></div><div class="">Hope that this helps,</div><div class=""><br class=""></div><div 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></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Mar 16, 2017, at 3:00 AM, Rizky Yanuar <<a href="mailto:mryanuar21@gmail.com" class="">mryanuar21@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello,<div class=""><font size="3" class=""><br class=""></font><div class="">I'm trying to get the hop count from a packet in a new custom policy based from existing policy (which is freshness-policy). I've tried using the example that's Alex mentioned in this mail: <a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-February/002423.html" class="">http://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-February/002423.html</a></div><div class=""><div class=""><br class=""></div><div class="">However, on the compiling process I still got an error message:</div><div class=""><br class=""></div><div class=""><div class="">In file included from ../src/ndnSIM/model/cs/content-store-with-freshness.hpp:28:0,</div><div class="">                 from ../src/ndnSIM/model/cs/content-store-with-freshness.cpp:20:</div><div class="">../src/ndnSIM/model/cs/custom-policies/freshness-policy.hpp: In member function ‘bool ns3::ndn::ndnSIM::freshness_policy_traits::policy<Base, Container, Hook>::type::insert(typename ns3::ndn::ndnSIM::freshness_policy_traits::policy<Base, Container, Hook>::type::parent_trie::iterator)’:</div><div class="">../src/ndnSIM/model/cs/custom-policies/freshness-policy.hpp:114:27: error: expected unqualified-id before ‘typename’</div><div class="">      auto dataTag = data->typename getTag<Ns3PacketTag>();</div><div class="">                           ^</div><div class=""><br class=""></div><div class="">I've tried remove the typename declaration and the <Ns3PacketTag> but I still failed on the compilation process. I'd greatly appreciate if anyone has any advice for this problem. Thank you very much.</div></div><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div style="color:rgb(136,136,136);font-size:12.8px" class=""><div dir="ltr" class=""><i class=""><font color="#666666" class="">Muhamad Rizky Yanuar</font></i></div><div dir="ltr" class=""><i class=""><font color="#666666" class="">23515017</font></i></div><div class=""><i class=""><font color="#666666" class=""><a href="mailto:mryanuar21@gmail.com" style="color:rgb(17,85,204)" target="_blank" class="">mryanuar21@gmail.com</a></font></i></div></div></div></div></div></div></div></div></div></div></blockquote></div><br class=""></div></body></html>