<div dir="ltr">Is it pkt or pkg ?<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 25, 2016 at 9:36 PM, Fabio Campioni <span dir="ltr"><<a href="mailto:fcampioni@algomau.ca" target="_blank">fcampioni@algomau.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to get the hop count from a packet in a custom content<br>
store implementation policy I am working on, in the latest version of<br>
ndnSIM (2.1).<br>
<br>
I have created my own policy_traits struct based on the ones already<br>
present. I have also instantiated a ContentStoreImpl class with the new<br>
policy traits. In the insert method, I have the following code:<br>
<br>
Ptr<const Packet> pkt = item->payload()->GetPacket();<br>
FwHopCountTag tag;<br>
pkg->PeekPacketTag(tag);<br>
<br>
However, when compiling, I get an error message:<br>
<br>
../src/ndnSIM/model/cs/../../utils/trie/hop-policy.hpp:105:60: error:<br>
‘class<br>
ns3::ndn::cs::EntryImpl<ns3::ndn::cs::ContentStoreImpl<ns3::ndn::ndnSIM<br>
::hop_policy_traits> >’ has no member named ‘GetPacket’<br>
         Ptr<const Packet> pkt = item->payload()->GetPacket();<br>
<br>
I have even made sure to include "ndn-fw-hop-count-tag.hpp" in the<br>
file, but it still has not made any difference. Not sure if that method<br>
has been depreciated or if I am overseeing something. If anyone has any<br>
advice I would greatly appreciate it. Thank you.<br>
<br>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div><br></div>