[ndnSIM] Getting hop count

Ahmed Sadek don1559 at gmail.com
Thu Feb 25 13:55:02 PST 2016


Is it pkt or pkg ?


On Thu, Feb 25, 2016 at 9:36 PM, Fabio Campioni <fcampioni at algomau.ca>
wrote:

> I am trying to get the hop count from a packet in a custom content
> store implementation policy I am working on, in the latest version of
> ndnSIM (2.1).
>
> I have created my own policy_traits struct based on the ones already
> present. I have also instantiated a ContentStoreImpl class with the new
> policy traits. In the insert method, I have the following code:
>
> Ptr<const Packet> pkt = item->payload()->GetPacket();
> FwHopCountTag tag;
> pkg->PeekPacketTag(tag);
>
> However, when compiling, I get an error message:
>
> ../src/ndnSIM/model/cs/../../utils/trie/hop-policy.hpp:105:60: error:
> ‘class
> ns3::ndn::cs::EntryImpl<ns3::ndn::cs::ContentStoreImpl<ns3::ndn::ndnSIM
> ::hop_policy_traits> >’ has no member named ‘GetPacket’
>          Ptr<const Packet> pkt = item->payload()->GetPacket();
>
> I have even made sure to include "ndn-fw-hop-count-tag.hpp" in the
> file, but it still has not made any difference. Not sure if that method
> has been depreciated or if I am overseeing something. If anyone has any
> advice I would greatly appreciate it. Thank you.
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160225/5b7b0222/attachment.html>


More information about the ndnSIM mailing list